The chart doesn't care where the data comes from, as long as it is in a DataTable. At a guess, I would say that your query is returning column A as well (or is placing some other column in front of B), which would cause B to be treated as a data series instead of a domain series. If you post the code you are using, I'll take a look and see if I can get a more concrete idea of what is going on.
The ImageLineChart is not a direct drop-in replacement for LineCharts, as they require completely different options in order to work. Is there a particular reason you might want to use the Image chart instead of the Interactive chart? On Friday, March 22, 2013 5:51:41 AM UTC-4, SJO wrote: > > Hi all > > Just started to take a look at the Google Charts API. I have a couple of > problems, if someone could clarify/solve please :- > > I've got some simple data in a google spreadsheet ( > https://docs.google.com/a/di.cx/spreadsheet/ccc?key=0Aq5ZGfoqCa6gdHZYelhoXzNIMkN0MWtiYkYyM0ZhQWc#gid=0 > ). > > Column B is what I want for my X axis. > Columns C+ are the series data. > > 1) I've got some sample code on the playground rendering this data in a > LineChart object. Works fine, however I can't figure out how to show the > X axis (RPM). I notice from the normal LineChart example, where you use > an array in the script, the first column (0) is used for the X axis. Could > someone please confirm if the Data Source Request method of populating a > LineChart object differs? If I specify column B (RPM) in my query, it > just shows it as series data and not the X axis. > > 2) Should I be able to directly replace LineChart with an ImageLineChart > object? > I appreciate the latter is not an official Google chart type. If I simple > substitute the object by name I get nothing in the output. I do not know > either if ImageLineChart is compatible with a Data Source Request? > > > If anyone could please clarify/demonstrate the above, that'd be fantastic. > > > Many thanks in advance :-) > > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
