1
votes

I'm using the google charts library to make some interactive scatter plots. And I cannot find is whether you can have symbols other than circles as "markers" ? As far as I can see it was possible with the previous obsolete version of google charts. But is it impossible with the current one ?

Scatter chart "playground": https://code.google.com/apis/ajax/playground/?type=visualization#scatter_chart

2

2 Answers

2
votes

Currently (as of July, 2013) there is no way to do this within the chart options. You have a choice between circles and no markers, and that's it.

You could go through the code and change the SVG using javascript, changing the circles to rectangles, and manipulating the coordinates appropriately (or drawing paths, or whatever you'd like). That's really the only way to do it.

Edited to add:

Additionally, you could set a fill for the circles themselves using javascript, and make the fill any shape you'd like.

0
votes

You can do it with the help of image charts. You can change the color and shape of the markers using this.Refer this link. An example for the different shape markers

enter image description here

Click here to see this. For more google charts related queries take a look at this jqfaq.com