RadCartesianChart Series line color

2 posts, 0 answers
  1. Artur
    Artur avatar
    8 posts
    Member since:
    Apr 2011

    Posted 21 Oct 2015 Link to this post

    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

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 23 Oct 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top