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

Multiple Databound Lines in CartesianChart.Lineseries

1 Answer 166 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 29 May 2015, 03:59 PM

Hey guys,

 

Trying to add multiple lines to a Cartesian.LineSeries. I have 2 lists, that I need displayed. 1 is for a current customers data, the 2nd is for comparison to another customers data. All the data is in both lists. I can get the first list to show easily. But when trying to add a 2nd line to it it's not so easy.

Here is what I have so far.

   <Grid>
        <telerik:RadCartesianChart x:Name="MetricLineGraph" HorizontalAlignment="Left" VerticalAlignment="Top" Height="Auto"  Width="Auto" MinHeight="300" MinWidth="300" Margin="10,10,10,10" >
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeContinuousAxis LabelFitMode="MultiLine"
                                    LabelFormat="hh:mm:ss"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis />
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:LineSeries ItemsSource="{Binding GraphItems}"
ValueBinding="MetricValue"
CategoryBinding="MetricTimeStamp"
                                 Foreground="WhiteSmoke"
                                 TextBlock.Foreground="White">
                </telerik:LineSeries>
                <telerik:LineSeries ItemsSource="{Binding LineGraphGroupCompareItems}" 
ValueBinding="MetricValue"
                                 Foreground="WhiteSmoke"
                                 TextBlock.Foreground="White">
                </telerik:LineSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>

    </Grid>

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 01 Jun 2015, 08:31 AM
Hello Michael,

We are unsure what exactly you have problems with. If you are able to show one line series, it should be very easy to display a second series. Can you explain in more details what is going on, you can send a small working project and images of what is shown. Then you can explain what you expect to see, again you can include some image. Thank you for your cooperation.

Regards,
Petar Marchev
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
Michael
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or