Multiple Databound Lines in CartesianChart.Lineseries

2 posts, 0 answers
  1. Michael
    Michael avatar
    1 posts
    Member since:
    May 2015

    Posted 29 May 2015 Link to this post

    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>

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 01 Jun 2015 Link to this post

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