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

Possible custom StepLineSeries line

1 Answer 42 Views
Chart
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 18 Mar 2015, 10:40 PM
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?

Thoughts?

William  

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 20 Mar 2015, 12:24 PM
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.

Regards,
Martin
Telerik
 

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.

 
Tags
Chart
Asked by
William
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or