Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Charts API: Always show the Data Point Values in Graph

Is it possible to always show the data point values in Line/Bar charts? by default values values are shown only when hovering on the data points as tooltip.

Something like this:

enter image description here

like image 735
abhiomkar Avatar asked Nov 19 '12 07:11

abhiomkar


People also ask

How do I show a value in a Google chart?

You should look into annotations. The column chart documentation has a cover of it here. Either you add annotation columns to your DataTable , annotation for column 1 should be at the index right after, or you can create a view and stringify the source column.

How do you show no data available on Google chart?

Use noData() method to enable "No data" label: chart. noData().

Is Google Charts deprecated?

While the dynamic and interactive Google Charts are actively maintained, we officially deprecated the static Google Image Charts way back in 2012. This gives us the right to turn it off without notice, which may happen soon.


1 Answers

You can simply use pointSize option which is set to 0 by default.

pointSize: Diameter of displayed points in pixels. Use zero to hide all points. You can override values for individual series using the series property.

like image 58
Semra Avatar answered Oct 21 '22 06:10

Semra