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

RadCartesianChart Series line color

1 Answer 541 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Artur
Top achievements
Rank 1
Artur asked on 21 Oct 2015, 02:47 PM

Hello,

 I am using RadCartesianChart  LineSeries and I can not set line color.

my XAML

        <chart:RadCartesianChart x:Name="radChart"
                                 Grid.Row="3" 
                                 Grid.Column="0" 
                                 Palette="Windows8" 
                                 Margin="6,-5,0,0"                                  
                                 Height="240">
            <chart:RadCartesianChart.Resources>
                <DataTemplate x:Key="PointTemplate1">
                    <Ellipse Height="10" Width="10" Fill="#FF1B9DDE" />
                </DataTemplate>
            </chart:RadCartesianChart.Resources>
            <chart:RadCartesianChart.HorizontalAxis>
                <chartView:CategoricalAxis FontSize="14"/>
            </chart:RadCartesianChart.HorizontalAxis>
            <chart:RadCartesianChart.VerticalAxis>
                <chartView:LinearAxis FontFamily="Segoe UI" FontSize="14" Title="Calories"   TickThickness="1" Minimum="0"    Maximum="{Binding LinearAxisMaxValue}"           />               
            </chart:RadCartesianChart.VerticalAxis>
            <chart:RadCartesianChart.Grid>
                <chartView:CartesianChartGrid MajorLinesVisibility="XY" StripLinesVisibility="none"  />
            </chart:RadCartesianChart.Grid>
            <ctChart:ChartSeriesTypeSwitch.SeriesType >
                <Binding Path="SelectedChartType" />
            </ctChart:ChartSeriesTypeSwitch.SeriesType>

        </chart:RadCartesianChart>​

 

please help me

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 Oct 2015, 07:37 AM
Hello Artur,

In order to change the line color of LineSeries you can set its Stroke property.
<chartView:LinearAxis Stroke="Red" />

Regards,
Martin
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Artur
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or