Style the Secondary Y Axis in RadChart

2 posts, 0 answers
  1. BHR
    BHR avatar
    2 posts
    Member since:
    Jan 2012

    Posted 25 Jan 2012 Link to this post

    Hi, i have a trouble  when i try apply a style to the secondary Y Axis, i followed the instructions that i have found in the forum (this.radChart.DefaultView.ChartArea.AxisY.AxisStyles.ItemLabelStyle= this.Resources[ "ItemLabelStyle" ] as Style;) ,I've only been able to apply the style to the primary axis but not the secondary.. Thanks.
  2. Rahul
    Rahul avatar
    116 posts
    Member since:
    Feb 2011

    Posted 26 Jan 2012 Link to this post

    Hi BHR,

             Try this Code.
    <Style x:Key="AxisLineStyle" TargetType="Line">
    <Setter Property="Stroke" Value="Orange"/>
    <Setter Property="StrokeThickness" Value="5"/>
    </Style>

    radChart.DefaultView.ChartArea.AdditionalYAxes[0].AxisStyles = this.Resources["AxisLineStyle"] as Style;

    Hope this will help you.

    Regards
    Rahul
  3. DevCraft banner
Back to Top