Page 1 of 1

Drag and draw, exception occurs

Posted: Sat Feb 18, 2023 10:41 am
by fish
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 12163 times
When I drag at will:
2.png
2.png (25.49 KiB) Viewed 12163 times
But in fact, the data is the same, just repeated。

Re: Drag and draw, exception occurs

Posted: Sat Feb 18, 2023 11:12 am
by fish
Maybe this is the solution:

chart.ChartRenderOptions.UpdateType = ChartUpdateTypes.Async;

Re: Drag and draw, exception occurs

Posted: Mon Feb 20, 2023 7:44 am
by ArctionKestutis
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.

Re: Drag and draw, exception occurs

Posted: Tue Feb 21, 2023 2:24 pm
by AnnetWang
useful information

Re: Drag and draw, exception occurs

Posted: Thu Mar 09, 2023 2:49 am
by fish
yes , dragging ViewXY,Keep moving up and down,The curve will deform, like the second figure

Re: Drag and draw, exception occurs

Posted: Thu Mar 09, 2023 10:34 am
by ArctionKestutis
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.