Hello, I am trying to color the CandleSticks within a RadCartesianChart but the code does not seem to be working. This is the code:
<telerik:RadCartesianChart.Series>
<telerik:CandlestickSeries ItemsSource="{Binding currentDataSource}"
OpenBinding="Open"
HighBinding="High"
LowBinding="Low"
CloseBinding="Close"
CategoryBinding="FromDate"
TrackBallInfoTemplate="{StaticResource trackBallInfoTemplate}">
<telerik:CandlestickSeries.DefaultVisualStyle>
<Style TargetType="telerik:Candlestick">
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="UpStroke" Value="Yellow" />
<Setter Property="DownStroke" Value="Cyan" />
<Setter Property="UpFill" Value="Green" />
<Setter Property="DownFill" Value="Red"/>
</Style>
</telerik:CandlestickSeries.DefaultVisualStyle>
</telerik:CandlestickSeries>
</telerik:RadCartesianChart.Series>
Also, is it possible to have different color for some of the candlesticks according to a custom logic? For example, if the value == 200, the candlesticks should be green, otherwise red. Thanks
<telerik:RadCartesianChart.Series>
<telerik:CandlestickSeries ItemsSource="{Binding currentDataSource}"
OpenBinding="Open"
HighBinding="High"
LowBinding="Low"
CloseBinding="Close"
CategoryBinding="FromDate"
TrackBallInfoTemplate="{StaticResource trackBallInfoTemplate}">
<telerik:CandlestickSeries.DefaultVisualStyle>
<Style TargetType="telerik:Candlestick">
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="UpStroke" Value="Yellow" />
<Setter Property="DownStroke" Value="Cyan" />
<Setter Property="UpFill" Value="Green" />
<Setter Property="DownFill" Value="Red"/>
</Style>
</telerik:CandlestickSeries.DefaultVisualStyle>
</telerik:CandlestickSeries>
</telerik:RadCartesianChart.Series>
Also, is it possible to have different color for some of the candlesticks according to a custom logic? For example, if the value == 200, the candlesticks should be green, otherwise red. Thanks