Hi Team,
I am working on column charts and have a query on the legend.
var data = google.visualization.arrayToDataTable([
['Element', 'Density', *{ role: 'style' }*],
['Copper', 8.94, *'#b87333'*], // RGB value
['Silver', 10.49, *'silver'*], // English color name
['Gold', 19.30, *'gold'*],
['Platinum', 21.45, *'color: #e5e4e2'* ], // CSS-style declaration
]);
Here, the legend displays 1 item with the name Density.
I want to customize the legend to display the label of the Element with the
respective colors used in the row.
So, the legend has to be :
Copper
Silver
Gold
Platinum with
How can I achieve this.
Thanks,
Lakshmi
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.