sds

3 posts, 1 answers
  1. Brett
    Brett avatar
    3 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    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. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 30 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Brett
    Brett avatar
    3 posts
    Member since:
    Aug 2013

    Posted 03 Sep 2013 Link to this post

    Thanks!  Your solution worked perfectly.  And thank you for the news regarding the next update.  We are looking forward to it.

    -Brett
Back to Top