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

Style for Tickpoint when labeled step is given

1 Answer 18 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Dipika
Top achievements
Rank 1
Dipika asked on 05 Jan 2012, 01:18 PM
Hello,
I am using telerik chart, where my xaxis is datetime and set its autorange=true.
I am using lebelstep and tickpoint distance property. I want to show labeled tickpoint in highlighted mode..(either in different colour or in bold)
How can Implement that? Does anybody has its styling code? or do I need to set some property/method?

Thanks,
Dipika

1 Answer, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 2
answered on 06 Jan 2012, 05:28 AM
Hi Dipika,

        You can achieve same result by applying following style for axis tick points.

SolidColorBrush color = new SolidColorBrush(Colors.Red);
 
Style majorTickLineStyle = new Style {TargetType = typeof(System.Windows.Shapes.Line)};
majorTickLineStyle.Setters.Add(new Setter { Property = System.Windows.Shapes.Line.StrokeProperty, Value = color});
Style minorTickLineStyle = new Style {TargetType = typeof(System.Windows.Shapes.Line)};
minorTickLineStyle.Setters.Add(new Setter {Property = System.Windows.Shapes.Line.StrokeProperty, Value = color});
 
 
RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].AxisStyles.TickLineStyle = majorTickLineStyle;
RadChart1.DefaultView.ChartArea.AdditionalYAxes[0].AxisStyles.MinorTickLineStyle = minorTickLineStyle;

Hope it will help you.

Regards,
Rahul
Tags
Chart
Asked by
Dipika
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 2
Share this question
or