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

Override LineSeries Template Example?

1 Answer 138 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
BENOIT CHEVALIER
Top achievements
Rank 1
BENOIT CHEVALIER asked on 15 Mar 2012, 10:57 AM
Hello,

Could you possibly provide an example for the RadChartView such as the one for the RadChart listed here: http://www.telerik.com/help/silverlight/radchart-styling-and-appearance-styling-chart-series.html ? I am interested in changing the style of the Line for the LineSeries chart but get a NULL Reference when using the example listed above.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 20 Mar 2012, 09:18 AM
Hello Benoit,

In RadChartView you have two possible options
  • To apply the custom stroke color directly to your line series:
<telerik:LineSeries Stroke="Red"
             StrokeThickness="2" 
             ValueBinding="PurchasePrice">
</telerik:LineSeries>

  • To set custom palette as shown in our demo:
<telerik:RadCartesianChart x:Name="Chart" Palette="Arctic">
...
</telerik:RadCartesianChart>

I hope this helps.

Greetings,
Sia
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ChartView
Asked by
BENOIT CHEVALIER
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or