But, the first column should be a String. i you try some thing like this:
data.addColumn('number', 'x');
data.addColumn('number', 'Cats');
data.addRow([1, 1]);
data.addRow([2, 1]);
data.addRow([2, 4]);
data.addRow([3, 4]);
data.addRow([3, 4]);
data.addRow([4, 5]);
data.addRow([4, 8]);
data.addRow([5, 8]);
data.addRow([5, 7]);
data.addRow([6, 7]);
data.addRow([6, 7]);
you will receive two Area.
2011/10/25 asgallant <[email protected]>
> IIRC, you should be able to do that with an area chart, but not with string
> values for the first column (it only works with numbers). With strings, the
> chart renders with each row having its own axis tick. With numbers, it
> renders the chart in coordinate grid system, which is what you need to do.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-visualization-api/-/5Sqi4wGSglIJ.
>
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.