We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to assign distinct colors to bars within the same series?
The text was updated successfully, but these errors were encountered:
The package doesn't have this feature yet. That said, I can think of two ways to enable it:
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' ] ]);
https://developers.google.com/chart/interactive/docs/gallery/columnchart 2. My way: use inline objects
var data = google.visualization.arrayToDataTable([ ['Element', 'Density'], ['Copper', { 'value': 8.94, 'color': '#b87333', 'annotation': 'Cu' }], ['Silver', { 'value': 10.49, 'color': 'silver', 'annotation': 'Ag' }], ['Gold', { 'value': 19.30, 'color': 'gold', 'annotation': 'Au' }], ['Platinum', { 'value': 21.45, 'color': '#e5e4e2', 'annotation': 'Pt' }] ]);
I'm leaning toward the second option as it's more flexible. Do you have any suggestion?
Sorry, something went wrong.
I prefer the inline maps as well as long as the supported properties are documented.
818c708
No branches or pull requests
Is there a way to assign distinct colors to bars within the same series?
The text was updated successfully, but these errors were encountered: