CandlestickSeries Styling

3 posts, 1 answers
  1. Saykor
    Saykor avatar
    70 posts
    Member since:
    Feb 2011

    Posted 07 Sep 2012 Link to this post

    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. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 10 Sep 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Saykor
    Saykor avatar
    70 posts
    Member since:
    Feb 2011

    Posted 10 Sep 2012 Link to this post

    Great,
    Thank you
Back to Top