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

Style the Secondary Y Axis in RadChart

1 Answer 64 Views
Chart
This is a migrated thread and some comments may be shown as answers.
BHR
Top achievements
Rank 1
BHR asked on 25 Jan 2012, 03:29 PM
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.

1 Answer, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 2
answered on 26 Jan 2012, 08:59 PM
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
Tags
Chart
Asked by
BHR
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 2
Share this question
or