LineColletion doesn't render when y axis is adjusted

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
mattmobilemedtek
Posts: 28
Joined: Tue Sep 30, 2014 8:06 pm

LineColletion doesn't render when y axis is adjusted

Post by mattmobilemedtek » Mon Mar 23, 2015 7:48 pm

Hello,

If I have stacked y axes and I put a line in the line collection for the first y axis, the line doesn't draw when the graph is panned.
LineBeforePan.png
LineBeforePan.png (23.4 KiB) Viewed 4480 times
In the first image you can see the horizontal white line on the y Axis.
LineAfterPan.png
LineAfterPan.png (25.56 KiB) Viewed 4480 times
In the second image, I have panned the first chart and the white line is no longer visible, while the series is.

Is there any way to prevent this from happening? I'd like the line to be on there with the series.

Thanks,
Matt

mattmobilemedtek
Posts: 28
Joined: Tue Sep 30, 2014 8:06 pm

Re: LineColletion doesn't render when y axis is adjusted

Post by mattmobilemedtek » Mon Mar 23, 2015 8:39 pm

I found out what was going on. There's a bit of code that skips rendering the line collection if its series stats are invalid. I simply commented this code out and it all worked.

Post Reply