Drag and draw, exception occurs

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
fish
Posts: 4
Joined: Mon Feb 06, 2023 12:08 pm

Drag and draw, exception occurs

Post by fish » Sat Feb 18, 2023 10:41 am

When I drag the curve,At the same time, the program is drawing,The curve becomes abnormal, and the data does not correspond to the appearance of the curve。

When I don't drag:
turedata.png
turedata.png (24.22 KiB) Viewed 10260 times
When I drag at will:
2.png
2.png (25.49 KiB) Viewed 10260 times
But in fact, the data is the same, just repeated。

fish
Posts: 4
Joined: Mon Feb 06, 2023 12:08 pm

Re: Drag and draw, exception occurs

Post by fish » Sat Feb 18, 2023 11:12 am

Maybe this is the solution:

chart.ChartRenderOptions.UpdateType = ChartUpdateTypes.Async;

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

Re: Drag and draw, exception occurs

Post by ArctionKestutis » Mon Feb 20, 2023 7:44 am

Could you be more specific: what does it mean "drag the curve"?
In general it is not possible to drag with mouse objects like Series (e.g. LiteLineSeries). There are ways to implement such functionality, but indirectly.
Maybe you are dragging ViewXY itself (that is, changing range of Axes X/Y)?

If you consider/concern about async operation or multithreading, you should read and understand requirements of thread-safe update. See our article for details: https://lightningchart.com/blog/multith ... lications/

Hope this helps.

AnnetWang
Posts: 1
Joined: Tue Feb 21, 2023 1:56 pm

Re: Drag and draw, exception occurs

Post by AnnetWang » Tue Feb 21, 2023 2:24 pm

useful information

fish
Posts: 4
Joined: Mon Feb 06, 2023 12:08 pm

Re: Drag and draw, exception occurs

Post by fish » Thu Mar 09, 2023 2:49 am

yes , dragging ViewXY,Keep moving up and down,The curve will deform, like the second figure

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

Re: Drag and draw, exception occurs

Post by ArctionKestutis » Thu Mar 09, 2023 10:34 am

Never saw such data/curve deformation just by dragging ViewXY before. And have difficulties to image how to create such effect.
Please send your (test) project to Support email account or upload here.

Post Reply