I'm relatively inexperienced, so please bear with me.
I'm developing a simple dashboard using the Google visualization API. I'm developing in vb.net. I have the Annotated Timeline, the Intensity Map, and a set of tables on my apsx.
What I am trying to do is update the Intensity Map and tables based on the date range the user selects using the Annotated Timeline tool.
I was hoping to update only these visualizations without doing a full page load. Apparently, a great way to do this is to separate the visualizations into self-contained aspx pages and use jQuery to "load" them into a div.
I say apparently, as this is not working. When I try to update an aspx containing a Google visualization using jQuery, I get the message "Loading data from www.google.com..." in the browser and it just runs continuously and never returns. I ran this by an experienced developer and he was stumped, but thought must be a conflict between the google API and jQuery.
Any tips, advice, alternative solutions are greatly appreciated!
just coded something that can help you. Tested for BarChart, ColumnChart, LineChart and AreaChart, for me works well (by design wouldn't work correctly for PieCharts).
Main constructor code:
You can simply pass data as array to construct charts (you must always parse data before call draw method)
besides that script is a little complicated, you can draw charts easily.
and refresh easily
hope it'll help you :)
Oh, and don't forget load libraries and include this script inside document ready function, e.g.