Setting method of "z-order"

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
yuki
Posts: 4
Joined: Wed Jan 28, 2015 4:10 am

Setting method of "z-order"

Post by yuki » Tue Feb 03, 2015 1:25 am

Please tell me the settings to the following "z-order".
1. PointLineSeries
2. LineSeriesCursor
3. AnnotationXY (= foreground)

Although I have the following settings,
LineSeriesCursor.Behind = false
AnnotationXY.Behind = false

"z-order" is as follows.
1. PointLineSeries
2. AnnotationXY
3. LineSeriesCursor (= foreground)
01.png
01.png (50.91 KiB) Viewed 11341 times

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Setting method of "z-order"

Post by ArctionPasi » Tue Feb 03, 2015 7:43 am

Hi Yuki,

that specific order is not possible directly. You can edit LC's source code, LightningChart.DrawingXY.cs, method DrawXYChart. Change DrawCursors call location in the loop to your preference.

If you need to do changes also in mouse handling order, see ViewXY.cs, MouseClicked, MouseUp, MouseDown, MouseMoved event handlers and modify as necessary.

Then rebuild Arction assemblies and set as reference to your project.
LightningChart Support Team, PT

yuki
Posts: 4
Joined: Wed Jan 28, 2015 4:10 am

Re: Setting method of "z-order"

Post by yuki » Tue Feb 03, 2015 10:50 am

Because I do not have a license(with source), I cannot do it. :(

>You can edit LC's source code, LightningChart.DrawingXY.cs, method DrawXYChart. Change DrawCursors call location in the loop to your preference.

So I try to deal with the LineSeriesCursor.TrackPoint.

yuki
Posts: 4
Joined: Wed Jan 28, 2015 4:10 am

Re: Setting method of "z-order"

Post by yuki » Wed Feb 04, 2015 2:56 am

Was tried LineSeriesCursor.TrackPoint, but because the Y-offset can not be specified, not meet the following requirements.

· I draw TrackPoint on Line.

It was also thought to use a bitmap, but the size of the TrackPoint is difficult because of the variable.
Do you have any good ideas?

I return a version if there is not a method. (Assemblies v6.3.3 -> v6.1.1)

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Setting method of "z-order"

Post by ArctionPasi » Wed Feb 04, 2015 7:12 am

We'll investigate the possibility to change the rendering order, LineSeriesCursors vs. annotations in v.6.4 coming this month.
LightningChart Support Team, PT

yuki
Posts: 4
Joined: Wed Jan 28, 2015 4:10 am

Re: Setting method of "z-order"

Post by yuki » Fri Feb 06, 2015 2:27 am

It is very kind of you.
I expect it in the next version. :)

User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Re: Setting method of "z-order"

Post by vrmitch » Mon Mar 16, 2015 3:31 pm

Hello,

I'm also running into an issue with this. Frequently AnnotationXY's are behind chart titles, axes, the legend box etc...

I was wondering if you had made any progress with this. I would prefer to simply set it to force AnnotationXY's to front over changing and rebuilding from source.

Thanks,

Mitch

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Setting method of "z-order"

Post by ArctionPasi » Mon Mar 16, 2015 5:21 pm

Hi Mitch,

LineSeriesCursors and Annotations order was changed 6.4.1, and meets Yuki's requirements.

Annotations still render behind Chart titles, axes and so on. We can't change these orders at the moment. You can do that with LC's source code, but also take care of changing mouse event handling of objects.
LightningChart Support Team, PT

Post Reply