So I was able to change the color of the vertical bar to black by editing
the series option.
series: { 0:{color: "Black"},
1: {type: "line"},
2: {type:"line"}}
However, this changes the colors for all the series, instead of just the
ones I want.
Ideally, the falling numbers will have a red vertical high/low bar,
and the rising numbers should have a green vertical bar.
Any ideas on how I can accomplish this?
On Saturday, October 20, 2012 4:25:01 PM UTC-6, Hoa Hoang wrote:
>
> I'm trying to customize the candlestick charts.
> I want the rising candlesticks to be hollow and falling candlesticks to be
> red.
> However, when I try to change the stroke and the fill, the horizontal bars
> representing the high and the low stay the default blue color.
>
> I end up with this: http://imgur.com/NoAzr
> Here's what my options look like.
> var options = {
> candlestick: {hollowIsRising : true,
> risingColor: {stroke: "Green"},
> fallingColor : {color: "DarkRed",fill : "DarkRed", stroke:
> "DarkRed",strokeWidth: 1 }},
> title : 'Monthly Coffee Production by Country',
> vAxis: {title: "price"},
> hAxis: {title: "Month"},
> seriesType: "candlesticks",
> series: {
> 1: {type: "line"},
> 2: {type:"line"}}
> };
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/ajdDVTUPbtoJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.