简体   繁体   中英

different symbols in a google charts scatter plot

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

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.

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

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM