Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

display google line chart (image) with single value

I am using the deprecated Google Line chart (image) in my website. Using this chart I am creating differnt reports. If it has only one value, it does not display the chart value. But I want to display that single value in Line Chart by default.

With the common Google Line chart I set the "'pointSize': 3" and I solved the problem, but with image api, I dont know if it is posible

this is my example of the chart with only one value:

https://chart.googleapis.com/chart?cht=lc&chs=200x125&chd=t:40 enter image description here

Anyone knows how to do something like that?

like image 710
MCSI Avatar asked Nov 27 '25 00:11

MCSI


1 Answers

If I understood well you should try adding something like this:

&chm=o,,0,,5.0

https://chart.googleapis.com/chart?cht=lc&chs=200x125&chd=t:40&chm=o,,0,,5.0

like image 114
mgalindez Avatar answered Nov 28 '25 14:11

mgalindez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!