The wicks of the candlestick are colored by the series color and not by the 
rising/falling state, and there is no way to force them to be colored by 
rising/falling state.  You could try using a DataView to separate out the 
rising and falling values into their own series and graphing them 
accordingly.  This would get you the colors you want, but your candles 
would be misaligned in the horizontal space (as each would have an empty 
spot where a candle from the other series would have been placed next to 
it).

On Saturday, October 20, 2012 7:19:38 PM UTC-4, hhoang wrote:
>
> 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/-/ch2o-YsHWSkJ.
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.

Reply via email to