There is no option to just color negative areas differently, although that would be a good idea.
But you can get a similar effect by filling the negative area with another area chart. Here is a modification of the previously posted example that does that: http://jsfiddle.net/bnugqpjx/6/ On Thu, Jun 2, 2016 at 11:50 AM, Tim Korhumel <[email protected]> wrote: > How would I go about implementing this script into an area chart that I > have already generated? Specifically just the portion that colors the > lines and the area based on the positive/negative value? > > On Wednesday, September 9, 2015 at 8:50:07 AM UTC-4, Viktor Dimitrov wrote: >> >> I wrote a script for areachart but I think the solution is similar. I >> hope it would be helpful. >> http://jsfiddle.net/bnugqpjx/3/ >> >> On Thursday, April 14, 2011 at 4:29:57 AM UTC+3, tim wrote: >>> >>> I don't see anything in the API changing the color of the bar >>> depending on the value. Is there a way to make it so that negative >>> values are different color than positive ones? >>> >>> Thanks. >> >> -- > You received this message because you are subscribed to the Google Groups > "Google Chart 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 https://groups.google.com/group/google-chart-api. > > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- You received this message because you are subscribed to the Google Groups "Google Chart 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 https://groups.google.com/group/google-chart-api. For more options, visit https://groups.google.com/d/optout.
