Nevron Forum

"Reference" lines (similar to Const Lines)?

https://www.nevron.com/Forum/Topic8750.aspx

By Bill Croteau - Thursday, October 2, 2014

Looking for a way to draw "reference" lines on a chart - in this case the reference line is a diagonal line showing the 1:1 representation of X:Y.  In many ways this is like a const line except that the value is not constant along a single axis but rather a constant formula (i.e. X/Y = 1).

I have currently simply added a single NLineSeries to the chart but was looking for a more elegant way to do this without all the clutter of dealing with a series in the data that isn't really a series (i.e. all kinds of code in my custom tools to detect and filter out the const line series)

By Nevron Support - Friday, October 3, 2014

Hi,
You can also use custom drawing to achieve this result - check out the All Examples\Custom Painting examples on how to attach a paint callback and perform coordinate transformations. Let us know if you meet any problems or have any questions.