google-visualization

Proper way to deal with variations in JSON serialization

I have a web service that uses Python's SimpleJSON to serialize JSON, and a javascript/ client that uses Google's Visualization API. When I try to read in the JSON response using Google Data Table's Query method, I am getting a "invalid label" error. I noticed that Google spreadsheet outputs JSON without quotes around the object keys. ...

Dynamically Generated Datatable for Google's Annotated Time Line

I want to use Google's Annotated Time Line Visualization. It is very easy to make this work by manually adding the lines for column & row data. This is all done through attributes of google.visualization.DataTable(). I would like to update this data table dynamically, but I do not know how. The data is on a server running MS SQL Server ...

How do I use rangechange() on the Google Annotated Time Line to only get data for the selected range?

I have a large number of data points that I want to graph using the Google Visualization: Annotated Time Line. I imagine that outputting, say, 100,000 data.setValue points in JS (using PHP similar to the method described here) to build a DataTable will cause performance issues. Instead, I want to output a small number and then increase d...

Data handling in web app with GWT, Struts and Hibernate

I am writing a Web App using Struts and Hibernate. Recently, I discovered GWT and the Visualization API. This all looked very interesting and provides AJAX functionalities that my app needs. I'm a newbie that is quite confused.... Where to put data access level checks? In the web app, users have different level of access for the data. ...

Returning google.visualization.DataTable from Javascript Function

I'm working on a page that brings in various data from a google spreadsheet, and need to loop in order to draw multiple visualizations from multiple queries. In order to do this I'd like to run a loop which queries the spreadsheet alters returned data to fit my needs graphs the altered data. I've tried multiple techniques, after alt...

How do you remove the x-axis from a bar chart produced by Google's Visualization API?

Referring to the kind of chart shown here: http://code.google.com/apis/visualization/documentation/gallery/barchart.html There doesn't seem to be a simple switch, and changing the axis color to white (on a white background) didn't seem to do anything. I even tried jquery to hide the selectors produced by the api output but no dice. ...

Turning off json key quoting in Rails

One of the features in Rails 2.3 was json key quoting. I was wondering if there was an easy way to turn the key quoting off or modify the way quoting is done (change to single quotes for example). I'd like to output a json format that Google's Visualization API will accept (http://code.google.com/apis/visualization/documentation/dev/im...

Using Google Table inside jqueryui ajax tab

Okay, this scenario is a little complicated, but I will try to explain it as best I can. I am using the Google Ajax Libraries API to get jquery and jqueryui onto the page, so the top of my page looks like this. <head> <title>TBTNet</title> <link rel="stylesheet" type="text/css" href="_css/style.css"> <link rel="stylesheet" type="tex...

jQuery load - Google visualizations page

Hi there I have a page with a few links and a div, on the same page that I will load other content into. Some of that content is google visualizations charts. Just as a test, I popped in the google line chart code. The page loads well on its own, but when I try to load it into div (using jQuery), it doesnt work. Firefox says transferin...

Where do you load the Google Maps API in a GWT project?

In my project.gwt.xml file I have <script src="http://maps.google.com/maps?gwt=1&amp;amp;file=api&amp;amp;v=2&amp;amp;sensor=false;key=MYKEY" /> But, when I load my page I get the google map gadget to come up, but with no map and an error message "Your page is missing the Google Maps API." Is there a different place I need to load th...

How to display milliseconds in Google Annotatedtimeline?

Hi, Can you please help me with the dateFormat specifier for Google Visualisation APIs so that I can display milliseconds. Thanks in advance! ...

Desktop Version of Google's Annotated Time Line Component?

I've been using Google's Annotated Time Line Visualization component for the last couple of weeks and I love it! I've been able to make plots with about 10k points without much trouble. Do you know of a desktop component I could plug into my application that delivers the same WOW factor that Google's component does? I don't care what th...

Trying to update a google visualization using jquery

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 ...

Google Visualization API, making a line graph

Hello, I am trying to make a line chart by using the Google Visualization API, here is my column data definition: var dataTable = new google.visualization.DataTable(); dataTable.addColumn('date', 'Date'); dataTable.addColumn('number', 'Uptime'); dataTable.addColumn('string', 'Channel'); I want to group my rows by channels and these g...

Multiple visualizations in one page

I am using python-visualization library for computing the datasource. I tried to put more than one visualization in a single page. Both are line charts and data comes from a seperate URLs for each visualizations. <script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt; <script type="text/javascript" src="/site...

Google Visualization Motion Chart Undefined?

Good Morning all! I'm running into an issue this morning where I added a Google Visualization Motion Chart to my application. But like most things its not cross browser compliant. In FF3 it works fine but in Safari and IE 7 the error console says: "TypeError: Result of expression 'google.visualization' [undefined] is not an object."...

Automatic re-scaling of Y-axis in Google Visualization API / Annotated Time Line

Is there any way to force the Annotated Time Line graph to automatically change scale on the Y-axis when the user zooms in on a range of dates? Check example below, and note that the value ("price") for 2009-10-09 is about two magnitudes larger than the other values. When the user zooms in on e.g. 2009-10-01 -- 2009-10-08, the Y-axis is...

Google Visualization BarChart: Labels overlapping in x-axis

There's probably a simple answer to this, but I have yet to find it. Essentially, my x-axis labels are overlapping on some rendered charts, but not others. I'm at a limit of font-size, so I'd like to reduce the number of labels/intervals. Is there a way to do this? chart.draw(data, {width: 480, height: 240, axisFontSize: 10,is3D: tru...

Real-time graphs

Do you know of a graphing library similar to Google's Annotated Timeline( http://code.google.com/apis/visualization/documentation/gallery/annotatedtimeline.html) that can be updated in realtime with new data points? Either javascript or flash is ok. Thanks! ...

How to disable Google Visualizations Select "balloons"?

Does anyone know how to disable the little "detail" balloons that popup when a Google Visualizations' chart is clicked (Selected)? Following the sample code at Getting Started with Visualizations, my charts look wonderful except that the "zoom details" feature I've developed don't override the default balloons. Unfortunately the balloo...