Title: Uncaught TypeError: Ei is not a function · Issue #29 · google/google-visualization-python · GitHub
Open Graph Title: Uncaught TypeError: Ei is not a function · Issue #29 · google/google-visualization-python
X Title: Uncaught TypeError: Ei is not a function · Issue #29 · google/google-visualization-python
Description: Hello, Since few weeks I decided to localize my website based on the the browser culture and since that decision i start to face the following error. Uncaught TypeError: Ei is not a function. The weird thing is that when i change the lan...
Open Graph Description: Hello, Since few weeks I decided to localize my website based on the the browser culture and since that decision i start to face the following error. Uncaught TypeError: Ei is not a function. The w...
X Description: Hello, Since few weeks I decided to localize my website based on the the browser culture and since that decision i start to face the following error. Uncaught TypeError: Ei is not a function. The w...
Opengraph URL: https://github.com/google/google-visualization-python/issues/29
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uncaught TypeError: Ei is not a function","articleBody":"Hello,\n\nSince few weeks I decided to localize my website based on the the browser culture and since that decision i start to face the following error. Uncaught TypeError: Ei is not a function.\n\nThe weird thing is that when i change the language of my chrome(Version 47.0.2526.106 m) to English US and i set up the APIversion to 1 (google.load('visualization', '1', { packages: ['controls'], callback: createCpuRamChart });) my charts are shown.\n\nWhen i change the browser language to Danish i am getting the error i mentioned before.\n\nI have tried also to use the API version 1.1. The result was that with the browser language set up to English US, the charts are not shown but when i change to Danish the chart works.. \n\nI have even changed the way how i load the data like:\n\n var cpuData = new google.visualization.DataTable();\n\n```\n cpuData.addColumn('date', 'Date');\n cpuData.addColumn('number', 'CPU');\n cpuData.addRow([new Date(1252152000000),4])\n cpuData.addRow([new Date(1252152000123),5])\n cpuData.addRow([new Date(1252152000456),6])\n```\n\nBut unfortunate I am getting the same error....\n\nMy code looks like:\n\ngoogle.load('visualization', '1.1', { packages: ['controls'], callback: createCpuRamChart });\n\n```\nfunction createCpuRamChart() {\n\n // A. Create new instance of DataTable to add our data to\n var cpuData = new google.visualization.DataTable();\n\n cpuData.addColumn('date', 'Date');\n cpuData.addColumn('number', '@Resources.Administration.ServerStatistics_CPU_ChartLabel');\n\n @if (Model.cpuUsage != null)\n {\n DateTime d1 = new DateTime(1970, 1, 1);\n foreach (var item in Model.cpuUsage)\n {\n var dateTime = (DateTime)item.GetValue(0); \n DateTime d2 = dateTime.ToUniversalTime();\n TimeSpan ts = new TimeSpan(d2.Ticks - d1.Ticks);\n @: cpuData.addRow([new Date(@ts.TotalMilliseconds),@item.GetValue(1).ToString().Replace(\",\", \".\")])\n }\n };\n\n //B. RAM data instance\n\n var ramData = new google.visualization.DataTable();\n\n // B. Create three columns with DataTable.addColumn(type, label)\n ramData.addColumn('date', 'Date');\n ramData.addColumn('number', '@Resources.Administration.ServerStatistics_RAM_ChartLabel');\n\n @if (Model.memUsage != null)\n {\n DateTime d1 = new DateTime(1970, 1, 1);\n foreach (var item in Model.memUsage)\n {\n var dateTime = (DateTime)item.GetValue(0);\n DateTime d2 = dateTime.ToUniversalTime();\n TimeSpan ts = new TimeSpan(d2.Ticks - d1.Ticks);\n @: ramData.addRow([new Date(@ts.TotalMilliseconds),@item.GetValue(1).ToString().Replace(\",\", \".\")])\n }\n };\n\n\n // Create the main Chart\n var cpuChart = new google.visualization.ChartWrapper({\n chartType: 'LineChart',\n containerId: 'cpuUsageLineChart',\n options: {\n hAxis: {\n title: 'Period'\n },\n vAxis: {\n title: 'Percentage'\n },\n width: 800,\n height: 400,\n chartArea: { left: 70, top: 20, bottom: 30, width: \"80%\", height: \"80%\" }\n }\n });\n\n\n var ramChart = new google.visualization.ChartWrapper({\n 'chartType': 'LineChart',\n 'containerId': 'ramUsageLineChart',\n options: {\n //legend:'none',\n hAxis: {\n title: 'Period'\n },\n vAxis: {\n title: 'GB'\n },\n width: 800,\n height: 400,\n chartArea: { left: 70, top: 20, bottom: 30, width: \"80%\", height: \"80%\" },\n }\n });\n\n // Create a date range slider\n var cpuDateSlider = new google.visualization.ControlWrapper({\n 'controlType': 'ChartRangeFilter',\n 'containerId': 'cpuUsageDateRange',\n 'options': {\n\n height: 150,\n // Filter by the date axis.\n filterColumnLabel: 'Date',\n backgroundColor: '#f1f8e9',\n ui: {\n //minRangeSize: 1800000,//not needed. You can set the range under the master dashboard\n chartOptions: {\n chartArea: { width: '95%', height: '100' },\n },\n }\n },\n\n });\n\n var ramDateSlider = new google.visualization.ControlWrapper({\n 'controlType': 'ChartRangeFilter',\n 'containerId': 'ramUsageDateRange',\n 'options': {\n // Filter by the date axis.\n filterColumnLabel: 'Date',\n backgroundColor: '#f1f8e9',\n ui: {\n //minRangeSize: 1800000, //not needed. You can set the range under the master dashboard\n chartOptions: {\n chartArea: { width: '95%', height: '100' },\n },\n }\n },\n\n });\n var formatDate = new google.visualization.DateFormat(\n { prefix: 'Time: ', pattern: \"dd MMM HH:mm\", });\n //{ prefix: 'Time: ', formatType: 'medium', });\n\n formatDate.format(cpuData, 0);\n formatDate.format(ramData, 0);\n // Create a dashboard.\n var dash_container = new google.visualization.Dashboard(document.getElementById('dashboard'));\n dash_container.bind(cpuDateSlider, cpuChart);\n\n var dash_container2 = new google.visualization.Dashboard(document.getElementById('dashboard2'));\n dash_container2.bind(ramDateSlider, ramChart);\n\n dash_container.draw(cpuData);\n dash_container2.draw(ramData);\n\n // create the master control\n var controlMaster = new google.visualization.ControlWrapper({\n controlType: 'ChartRangeFilter',\n containerId: 'control_master2',\n dataTable: cpuData,\n options: {\n\n // Filter by the date axis.\n filterColumnLabel: 'Date',\n backgroundColor: '#f1f8e9',\n ui: {\n // 1 day in milliseconds = 24 * 60 * 60 * 1000 = 86,400,000\n minRangeSize: 1800000,// 30 min\n //chartView: {columns: [0, 1]},\n chartOptions: {\n chartArea: { width: '95%', height: '80' },\n },\n }\n },\n });\n google.visualization.events.addListener(controlMaster, 'statechange', function () {\n var state = controlMaster.getState();\n cpuDateSlider.setState(state);\n ramDateSlider.setState(state);\n dash_container.draw(cpuData);\n dash_container2.draw(ramData);\n });\n\n controlMaster.draw();\n}\n```\n","author":{"url":"https://github.com/radu-andrei-28","@type":"Person","name":"radu-andrei-28"},"datePublished":"2016-01-04T13:50:57Z","url":"https://github.com/google/google-visualization-python/issues/29"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:74922388-b9ce-f6e6-6949-738fb9eb8ed7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C696:27D3AD:184CAA1:1ED689E:6B013E9A |
| html-safe-nonce | 76b0c4a48796291816ef79c2736c3a5bd9e1a46daab7cdfe8dac77ddd2852f54 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjk2OjI3RDNBRDoxODRDQUExOjFFRDY4OUU6NkIwMTNFOUEiLCJ2aXNpdG9yX2lkIjoiMTcyODMzMTcwODY4MjIzNjQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5d7b39d36810c14451811013734ec01f80d207c7af60e0cbb1ab72b837e2864e |
| hovercard-subject-tag | issue:124761850 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/google-visualization-python/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fbeea723df6ddce69411c7eae1b003658cc3fea204ec3a525ed6bd87c1b0add/google/google-visualization-python/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fbeea723df6ddce69411c7eae1b003658cc3fea204ec3a525ed6bd87c1b0add/google/google-visualization-python/issues/29 |
| og:image:alt | Hello, Since few weeks I decided to localize my website based on the the browser culture and since that decision i start to face the following error. Uncaught TypeError: Ei is not a function. The w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | radu-andrei-28 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-visualization-python git https://github.com/google/google-visualization-python.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35116715 |
| octolytics-dimension-repository_nwo | google/google-visualization-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35116715 |
| octolytics-dimension-repository_network_root_nwo | google/google-visualization-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width