How to chang color series RadCartesianChart ???

2 posts, 0 answers
  1. Pham Xuan
    Pham Xuan avatar
    1 posts
    Member since:
    Oct 2014

    Posted 25 Oct 2014 Link to this post

     I have RadCartesianChart : 
     <chart:RadCartesianChart  Zoom="{Binding Zoom, Mode=TwoWay}" HorizontalZoomRangeStart="1" HoverMode="FadeOtherSeries"
                                      PanOffset="{Binding PanOffset, Mode=TwoWay}" Palette="Windows8" Margin="150,68,10,10" Grid.RowSpan="2">
                    
                    <chart:RadCartesianChart.HorizontalAxis>
                        <chartView:CategoricalAxis MajorTickInterval="200" >
                        </chartView:CategoricalAxis>
                    </chart:RadCartesianChart.HorizontalAxis>
                    <chart:RadCartesianChart.VerticalAxis>
                        <chartView:LinearAxis />
                    </chart:RadCartesianChart.VerticalAxis>
                    <telerik:RadCartesianChart.Behaviors>
                        <telerik:ChartPanAndZoomBehavior  ZoomMode="Horizontal"/>
                        <telerik:ChartTrackBallBehavior ShowIntersectionPoints="True" />
                    </telerik:RadCartesianChart.Behaviors>
                    <chart:RadCartesianChart.Grid>
                        <chartView:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y" />
                    </chart:RadCartesianChart.Grid>

                    <volumeChart:ChartSeriesTypeSwitch.SeriesType>
                        <Binding Path="SelectedChartType" />
                    </volumeChart:ChartSeriesTypeSwitch.SeriesType>
                </chart:RadCartesianChart>
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 28 Oct 2014 Link to this post

    Xuan,

    I think that you are referring to our new ChartView and not the old RadChart and this is why I changed the Product of this thread to RadChartView.

    There are a few approaches into changing the appearance of a series. One is to set the Stroke property of the LineSeries. Another is to use the StrokeShapeStyle property. And another option is to use a Palette. Note that the Stroke property of the LineSeries has the highest priority, after that it is the Palette and the last is the StrokeShapeStyle.

    Here you can read about how you can define your own palette. Let us know if you have more questions.

    Regards,
    Petar Marchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top