Hi,
Can I have possibility in TWEBGoogleCharts to make a bars with different colors?
In google charts API I can do this in this way (https://developers.google.com/chart/interactive/docs/gallery/barchart --> Coloring bars):
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
]);
Regards,
Bart
(Bart)
June 25, 2019, 4:11pm
2
Hi,
You can set the color of the bar for each Series through the Color property.
Hi,
The question is how to change colors bars for one serie?
Example abovefrom google API page do this, how can I do this in WebGoogleChart?
Regards,
Bart
(Bart)
June 26, 2019, 4:07pm
4
Unfortunately there is currently no-built support for this feature.
However this is a good suggestion and we'll consider adding this feature in a future version.
Bart
(Bart)
June 27, 2019, 11:55am
6
We'll consider this feature when development work on the next update starts but unfortunately I can't confirm at this time if it will be included or not.
Ok ... I understand.
Btw role: annotation is cool feature I think :), but If you will implement role: style it is the same kind of work.
var data = google.visualization.arrayToDataTable([
['Element', 'Density', { role: 'style' }, { role: 'annotation' } ],
['Copper', 8.94, '#b87333 ', 'Cu' ],
['Silver', 10.49, 'silver', 'Ag' ],
['Gold', 19.30, 'gold', 'Au' ],
['Platinum', 21.45, 'color: #e5e4e2 ', 'Pt' ]
]);
Thank you for the info and regards.
Bart
(Bart)
June 27, 2019, 3:06pm
8
Support for annotations has also been added to the feature-request list. We'll consider adding this feature in a future version.