I have two charts on the same screen (image below), and the crosshairs always line up (i manually set them when the value changes). Is there a way to make them both highlight when i mouseover one of them?
I got as far as adding MouseOver\MouseOff events, but i don't know how to programatically begin a mouse highlight.
Thanks!
ViewXY: Programatically highlight a cursor?
Moderator: Queue Moderators
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY: Programatically highlight a cursor?
Unfortunately, there's no way to do that currently.
Series have SetHighlight and RemoveHighlight methods, but cursors don't.
Series have SetHighlight and RemoveHighlight methods, but cursors don't.
LightningChart Support Team, PT
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY: Programatically highlight a cursor?
There's a way, kind of... change the cursor's color. You can blend the original color to a highlight color:
cursor.LineStyle.Color = ChartTools.CalcGradient(cursor.LineStyle.Color, DefaultColors.SimpleHighlightGradient, 50); or other preferred color.
cursor.LineStyle.Color = ChartTools.CalcGradient(cursor.LineStyle.Color, DefaultColors.SimpleHighlightGradient, 50); or other preferred color.
LightningChart Support Team, PT
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
Re: ViewXY: Programatically highlight a cursor?
I'll give this a try; thanks