Setting Background color for between X Axis Values

28 views
Skip to first unread message

Sachin Dubey

unread,
Jun 14, 2016, 2:04:27 AM6/14/16
to Google Visualization API
Dear All,


               Good day.

               I want to create a Bar chart similar to attached Image. My X axis is Risk Factor and i need to give different background color for different Range of Values of X Axix(Pl See Image then you get It).

               Can i do that or achieve the same objectve using Google charts. I saw the methods and events but i have either missed or not found anything to color axis area.

               Please advise.


Thanks & Regards

Sachin
Capture.PNG

Daniel LaLiberte

unread,
Jun 14, 2016, 8:52:23 AM6/14/16
to Google Visualization API
Hi Sachin,

You can color background areas like that by using a stacked area chart.   Here is an example: https://jsfiddle.net/dlaliberte/w9Lth1f8/1/

--
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 post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/b19c340a-f745-45dd-bdec-274062217124%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Sachin Dubey

unread,
Jun 14, 2016, 8:58:19 AM6/14/16
to Google Visualization API
Dear Sir,

Many Thanks for your prompt response and showing me the way..

Will start working on it and i hope i will do that now.

Many thanks once again..

/Sachin


On Tuesday, 14 June 2016 18:22:23 UTC+5:30, Daniel LaLiberte wrote:
Hi Sachin,

You can color background areas like that by using a stacked area chart.   Here is an example: https://jsfiddle.net/dlaliberte/w9Lth1f8/1/
On Tue, Jun 14, 2016 at 2:04 AM, Sachin Dubey <sachin...@gmail.com> wrote:
Dear All,


               Good day.

               I want to create a Bar chart similar to attached Image. My X axis is Risk Factor and i need to give different background color for different Range of Values of X Axix(Pl See Image then you get It).

               Can i do that or achieve the same objectve using Google charts. I saw the methods and events but i have either missed or not found anything to color axis area.

               Please advise.


Thanks & Regards

Sachin

--
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-visualization-api+unsub...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages