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

How to chang color series RadCartesianChart ???

1 Answer 151 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Pham Xuan
Top achievements
Rank 1
Pham Xuan asked on 25 Oct 2014, 05:03 AM
 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>

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 28 Oct 2014, 08:22 AM
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.

 
Tags
Chart
Asked by
Pham Xuan
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or