Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Visualization: Keep data points visible

I'm wondering if there is a way to keep the dots visible for each data point on a line chart. The default behavior is that a dot only appears on a data point (along with a tootip) when you hover over it. I'd like the data point dots to be visible by default. Is there a way I can go about doing this?

like image 533
Jeremy Avatar asked Dec 04 '22 21:12

Jeremy


1 Answers

The pointSize attribute is responsible for the dot size. So something like chart.draw(data, {pointSize: 1}) should make the points visible by default. (The default setting is size 0.)

Hope that helps!

like image 149
Ayaka Nonaka Avatar answered Jan 29 '23 03:01

Ayaka Nonaka