GrabPadding on ConstantLine

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
aelbuz
Posts: 12
Joined: Fri Sep 15, 2023 1:56 pm

GrabPadding on ConstantLine

Post by aelbuz » Fri Sep 15, 2023 2:11 pm

Hi,

Is it possible to add GrabPadding property to ConstantLine? LineSeriesCursor has this feature and it's very useful especially for thin lines.

Thanks.

ArctionKestutis
Posts: 555
Joined: Mon Mar 14, 2016 9:22 am

Re: GrabPadding on ConstantLine

Post by ArctionKestutis » Mon Sep 18, 2023 6:58 am

Hi,

Only LineSeriesCursor has GrabPadding property but not ConstantLine.
If you don’t want to increase line width, only other workaround (I imagine) is to use another transparent thicker ConstantLine. You would place 2nd ConstantLine behind and allow-user-interaction only with it. First ConstantLine will have no interaction, but synchronized position with first through ValueChanged event handler.

Hope this helps.

aelbuz
Posts: 12
Joined: Fri Sep 15, 2023 1:56 pm

Re: GrabPadding on ConstantLine

Post by aelbuz » Mon Oct 09, 2023 7:16 am

Nice solution! Thank you so much for the workaround.

The solution may get more complicated if I need more than one ConstantLine (in my example 4 or 5), but it's still the best solution I've ever heard.

Thanks again.

Post Reply