Possible custom StepLineSeries line

2 posts, 0 answers
  1. William
    William avatar
    4 posts
    Member since:
    Mar 2014

    Posted 18 Mar 2015 Link to this post

    I was wondering if it would be somehow possible to create the step line series with lines like in the attached image,  It seems that the step lines are actually a vector graphic that is generated on the fly so I am thinking probably not but just wanted to make sure.  The idea is the lines would be slightly larger than the actual bar width.

    Or is there another way to achieve this?


  2. Martin
    Martin avatar
    1041 posts

    Posted 20 Mar 2015 Link to this post

    Hello William,

    Indeed, the step line series of the chart is presented with a native Path element which renders its data as a vector, since the WPF framework uses vector based rendering. However, the described behavior is not supported by the series and implementing such behavior would be quite complex task. Instead of step line series you can consider using a custom annotation to draw the lines over the bars.

    I attached a sample project that demonstrates this approach. In addition I included logic that updates the annotation's size on resizing of the chart control.


    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top