Material bar charts with labels inside the bars

34 views
Skip to first unread message

Vincent0080

unread,
Apr 8, 2020, 4:59:06 AM4/8/20
to Google Visualization API
Hi!
i want to create a meterial bar chart like the one in the google charts gallary (title: Company Performance), but my bar description/labels are too long to have them on the left side of the bars. 
I tried to use " { role: 'annotation' } " in the "function drawChart()" to have a label inside the bars, but it seems like it doesnt work with these split bars. Can someone help me out?
I attached a screenshot. My goals is, to have the labels (or a part of it) in the bars.
All the best,
Vince

bar chart.png

Daniel LaLiberte

unread,
Apr 8, 2020, 11:35:51 AM4/8/20
to Google Visualization API
The material charts lack a lot of features that the corecharts support, including annotations.  So I would recommend you use the 'corechart' BarChart with the option theme: 'material' to get the same colors and fonts.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/737ca5ad-c150-4b09-ba7f-0617130992e4%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages