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

sds

2 Answers 60 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 27 Aug 2013, 09:13 PM
I am curious if it is possible to add a lineseries (or other series) to a CartesianChartGrid with the characteristics of the "desired line" within the attached file.

This line will track a digital state, so the only values will be 0 and 1.  When changing value, we wish to produce the effect of a vertical line such as a block, rather than a gradual climb or descent as such in the "current line".

Below is the code which creates the "current line" series:

 

var outputsuperImposedLineSeries = new LineSeries();
outputsuperImposedLineSeries.ValueBinding = new PropertyNameDataPointBinding("Value");
outputsuperImposedLineSeries.CategoryBinding = new PropertyNameDataPointBinding("Timestamp");
outputsuperImposedLineSeries.ItemsSource = superImposedMappings.Groups.First() as IEnumerable;
outputsuperImposedLineSeries.Stroke = Brushes.Purple;
outputsuperImposedLineSeries.TrackBallInfoTemplate = BuildTrackBallInfoTemplate(Brushes.Purple.ToString(), name, 4);
outputsuperImposedLineSeries.VerticalAxis = new LinearAxis { Minimum = 0, ElementBrush = Brushes.Purple, Title = name, HorizontalLocation = Telerik.Charting.AxisHorizontalLocation.Right };
superImposedSeries.Add(outputsuperImposedLineSeries);

Is this desired effect possible?

Thank you for your time,
-Brett

Edit:
The title should read "Help for creating a series to track digital values similar to a step".  My apologies for the incorrect title.

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel R. Pavlov
Telerik team
answered on 30 Aug 2013, 03:37 PM
Hi Brett,

Thank you for contacting us on that matter. I am happy to inform you that with the next official release (Q3 2013) we will deploy a new series called "StepSeries" that series will change its Value with step and it will fit your requirement in this scenario.

However, till the release you can achieve your requirement by adding an extra point into the already used LineSeries. This point should define where the visualized line should jump to the new value. Basically you define the point of jump. Please take a look at the next picture to clarify what I mean.



The red dots are your current points and the green dot is the extra point that you need to add into the ItemsSource of the LineSeries.

I hope this information is helpful.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Brett
Top achievements
Rank 1
answered on 03 Sep 2013, 09:36 PM
Thanks!  Your solution worked perfectly.  And thank you for the news regarding the next update.  We are looking forward to it.

-Brett
Tags
ChartView
Asked by
Brett
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Brett
Top achievements
Rank 1
Share this question
or