Use a "style" role column to color your bars:
var data = google.visualization.arrayToDataTable([
['Name', 'Value', {role: 'style', type: 'string'}],
['High', 50, '#d51711'],
['Medium', 25, '#f9f107'],
['Low', 10, '#11d517']
]);
On Friday, June 27, 2014 3:02:01 AM UTC-4, Nagendra Singh wrote:
>
> Hi all,
> How can we apply color to a bar as red whenever it is high?
>
> Like a bar which has the highest value should be always red, and medium
> value should have yellow and at last lowest value as green..
>
> Please suggest a way as soon as possible....
>
--
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.