Vertical constant lines

Need a new feature to LightningChart Ultimate? Post it here and perhaps it will be implemented in the next version...

Moderator: Queue Moderators

Post Reply
jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Vertical constant lines

Post by jrvdboom » Thu Aug 28, 2014 8:58 am

I would like to have a vertical ConstantLine, with a property like Band.Binding to determine if it should be a horizontal or vertical line.

(I know I could misuse a Cursor to get a vertical constant line, but I like to keep it simple!)

Thanks,
Joost

0uss
Posts: 16
Joined: Mon Apr 18, 2016 5:05 pm

Re: Vertical constant lines

Post by 0uss » Tue May 31, 2016 2:15 pm

Hi,

I'm interested in the same thing. Did you find a solution to your problem?
I would like to use a simple ConstantLine with some text and no need for all the cursors features in my application.

Thank you.

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Re: Vertical constant lines

Post by jrvdboom » Wed Jun 01, 2016 7:28 am

No, still using a LineSeriesCursor as a workaround.

ArctionNitin
Posts: 3
Joined: Fri Aug 03, 2018 1:18 pm

Re: Vertical constant lines

Post by ArctionNitin » Fri Aug 03, 2018 3:05 pm

Hi,

You can create a LineCollection with 1 SegmentLine in it.

Vertical line at x= 1 from y= 1 to y = 5
LineCollection lineCollection = new LineCollection();
SegmentLine[] segmentLines = new SegmentLine[1];
SegmentLine segmentLine = new SegmentLine();
segmentLine.AX = 1;
segmentLine.BX = 1;
segmentLine.AY = 1;
segmentLine.BY = 5;
segmentLines[0] = segmentLine;
lineCollection.Lines = segmentLines;
chart.ViewXY.LineCollections.Add(lineCollection);

To add more lines, just add more SegmentLine's in the LineCollection.

Let me know if the requirement was different.


Thanks,
Nitin Shrivastava

Post Reply