Draw a average line across the bar's in the bar charts using google charts ?

77 views
Skip to first unread message

Srikanth D

unread,
Sep 26, 2016, 9:12:40 AM9/26/16
to Google Visualization API
Hi,

I have a requirement to draw a average line across the bar's in the bar charts using google charts.

Please refer the attached image.

Can you please help me ? 

Thanks in advance

Regards,
Srikanth
ex.JPG

Daniel LaLiberte

unread,
Sep 26, 2016, 9:51:08 AM9/26/16
to Google Visualization API
Hi Srikanth,

You will have to compute your average value and add a column to your data to represent this value.  Then you can use a combo chart to draw a line in the column chart.  https://developers.google.com/chart/interactive/docs/gallery/combochart

--
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-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@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/c90e1abf-21f5-4b91-8185-0094cf1ba09e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages