Reputation: 5011
I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so?
Upvotes: 7
Views: 8113
Reputation: 26262
Here's another example: twitter charts. I'm hoping to do the same thing. Need to find out how to do the concentric circles.
Upvotes: 0
Reputation: 5011
I answered my own question after waiting SECONDS for an answer here :-)
You can indeed have different colors for different data elements. For example:
It's the chm= that does the magic. I was trying to have multiple chm= statements. You need to have just one, but with multiple descriptions separated by vertical bars.
Upvotes: 4
Reputation: 28874
You could effectively fake a multi-color scatter plot by using a line plot with white lines and colored shape markers at the points you want to display.
Upvotes: 1
Reputation: 11595
You can only use one dataset in a scatter plot, thus only one color.
http://code.google.com/apis/chart/#scatter_plot
From the API description:
Scatter plots use multiple data sets differently than other chart types. You can only show one data set in a scatter plot.
Upvotes: 3