Google Visualization Chart Stopped Working - charts

I have created a dashboard which uses JSON data to create several different kinds of google visualization charts. This dashboard has been working perfectly for two years. Just in the past day or so, the column chart and the line chart give a "Cannot read property 'Do' of undefined" error while my tables and maps continue to work. I have checked all of the most recent records to make sure there is nothing that could be undefined and I have found no issues. I've checked my arrays in the console and they all look correct. I've also checked the chart objects in the console just before drawing and they are properly populated, so I am stumped. Can anyone help me figure out what could be happening?

load google charts with a saved version (a.k.a. Frozen Charts Version)...
google.charts.load('50', {
when implementing a page or application,
always use a saved version of google charts.
this way, changes to the 'current' version can't mess with your code.
you can find a list of the saved versions at the following link,
along with the changes that were implemented...
https://developers.google.com/chart/interactive/docs/release_notes#version-history

Related

How to create an empty chart in charts_flutter?

My question is about the charts_flutter charting library for Flutter (https://pub.dev/packages/charts_flutter) and how to draw an empty chart without any data with it? The library has an example gallery: https://google.github.io/charts/flutter/gallery.html showing different charts one can create using the library, but there is no example how to create an empty chart.
The reason for this need is that my app starts with no data and all the data is created during the run. I have successfully updated my chart an modified how it looks, when starting the app with fake debug data.
If a chart with no data is not possible, I would accept a solution where the whole widget is being build only after the first data are created. Is this possible in Flutter? To my understanding all the classes are initialized when the app is started. Is this correct?
One workaround would be starting with some artificial data, update the data and only after that show the chart widget, but this sounds more like a hack: I do not like this one.
Am I dealing with a crappy charting library and should I find a better library, or is it just my Flutter skills and understanding that are (still a bit) crappy? :)
It is absolutely possible to create a chart with the charts_flutter package that doesn't contain any data to start with.
The data field in the Series-class cannot be null, but you can provide an empty list.

accessing XHR within google sheets

I've been using import functions a lot in my sports modeling, but I've never been able to figure out how to get past the issue of pulling information that is dynamically imported from another source.
For example, i'm trying to use importxml to pull the money line values in this link here: https://www.sportsbookreview.com/betting-odds/nfl-football/money-line/
I can get the information in the left columns up until "PINNACLE", and after research i now understand I can't get the rest of the information because it's not static on the page and I need to go to the source... how do I find the source of this information so I can pull it from there?
I tried inspecting the page, clicking on "network", clicking on "XHR", refreshing the page and previewing the results, but nothing seemed to match.
Am I looking in the wrong place?
The page uses websockets to download the data, so I don't think you could simulate it in Google spreadsheets using formulas (maybe it could be possible in a script). However in this particular case there is a 'classic view' variant of the page which includes all the data in its source:
https://classic.sportsbookreview.com/betting-odds/nfl-football/money-line/

Does the Charts library support showing a message when there's no data to display?

I'm using the Charts library (Charts) and I want to display a message on the chart if there's no data to display - something like this:
I've read the documentation, searched the code base, and searched the issues on Github and the only thing I could find is an old issue that suggests ChartViewBase has a property called noDataTextDescription. As far as I can tell, that's not in the Charts 3.1.1 code.
There is a chartDescription property, but that only shows a description in the bottom right corner of the chart. Is this intended to be used for a message like 'There's no data to display`?
In newer version after 3.X many properties name updated and as per your requirement for No Data Text you can use below property for the same.
lineChartView.noDataText = "<Your custom Text>"
Hope this will help to show Message while there is no data.

SAPUI5 Gantt chart official example does not work

Dear SAPUI5 developers,
I want to use the Gantt chart of SAPUI5. I found just one example of Gantt Chart in the following link:
https://sapui5.hana.ondemand.com/explored.html#/sample/sap.gantt.sample.BasicGanttChart/preview
While the example works fine in their official website, I downloaded it and run inside of the WebIDE. But it throws the following error and its features like magnifier does not work.
Uncaught (in promise) Error: "-Infinity%" is of type string, expected sap.ui.core.CSSSize for property "selectionPanelSize" of Element sap.gantt.GanttChartWithTable#__xmlview0--ganttView(…)
I didn't change anything. So if you need to run the example to run it you can download the from the above link.
Also I am looking for a some tutorials about SAPUI5 Gantt Chart. But I have not yet found anything. If you can redirect me to some tutorial related to this feature I appreciate it.
As I understood this problem is not related to the controller. And even when I just load the XML view this error appears.
Thanks in advance
In index.html, remove data-sap-ui-preload="async".
Hope it Helps.

Get Drill down URL from FusionCharts events

I'm working with FusionCharts (specifically a column chart). The chart is created from a rest endpoint that outputs chart xml. The endpoint also encodes xml-urls into the chart for drill-down. I want to capture these urls in order to change the contents of the surrounding form (to make it appear the parameters chosen generated that chart).
The problem I'm running into is that the BeforeLinkedItemOpen and LinkedItemOpened events do not contain the url the chart is pulling its xml from.
The LinkedChartInvoked event does contain this information - its just only called navigating the first level of the drill-down.
I have five levels of drill-down, so that won't work. Anyone know of a way to get the information I'm looking for?
I never did find an answer for this. It appears that FusionCharts simply does not report this information and I could not do what I was trying to do.