Square Bubble Charts

151 views
Skip to first unread message

Abalhassan Sheikh

unread,
Jan 26, 2016, 2:59:16 PM1/26/16
to Google Visualization API
Is it possible to render a bubble chart where the bubbles are square instead of circles?

standard example for bubble chart will do. 


Bubble chart seems more suited to what i would like to accomplish than scatter plot.

Thanks!

Daniel LaLiberte

unread,
Jan 26, 2016, 3:10:12 PM1/26/16
to Google Visualization API
Hi Abalhassan,

You could actually poke at the SVG elements and convert circles into squares, but I wouldn't recommend that route since it seems likely to be fragile.

The point shapes feature (https://developers.google.com/chart/interactive/docs/points) would let you draw squares for scatter points, and you can now vary the size and color of each point (with the style role: https://developers.google.com/chart/interactive/docs/roles), if you can compute what sizes and colors you want.   The colorbar feature that the bubble chart shows would be one feature that the scatter chart cannot give you.


--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6cba655c-6b33-49f4-a77d-fda60395ac42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages