This is a migrated thread and some comments may be shown as answers.

CandlestickSeries Styling

2 Answers 61 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Saykor
Top achievements
Rank 2
Saykor asked on 07 Sep 2012, 12:07 PM
Dear Telerik team,

How i can style this bars from white/black to green/red?: http://demos.telerik.com/silverlight/#ChartView/Financial in WPF

Best regards,
Saykor

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 10 Sep 2012, 11:03 AM
Hello Saykor,

You can use the DefaultStyle property of the CandlestickSeries for this and set the UpStroke, DownStroke, UpFill and DownFill properties:

<telerik:CandlestickSeries.DefaultVisualStyle>
 <Style TargetType="telerik:Candlestick">
  <Setter Property="MinHeight" Value="1" />
  <Setter Property="StrokeThickness" Value="1" />
  <Setter Property="UpStroke" Value="Red" />
  <Setter Property="DownStroke" Value="Green" />
  <Setter Property="UpFill" Value="Blue" />
  <Setter Property="DownFill" Value="Yellow" />

I have also attached a simple project to demonstrate this. Let us know if you need further assistance.

Kind regards,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Saykor
Top achievements
Rank 2
answered on 10 Sep 2012, 12:37 PM
Great,
Thank you
Tags
ChartView
Asked by
Saykor
Top achievements
Rank 2
Answers by
Petar Marchev
Telerik team
Saykor
Top achievements
Rank 2
Share this question
or