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:
When I drag at will:
But in fact, the data is the same, just repeated。
Drag and draw, exception occurs
Moderator: Queue Moderators
Re: Drag and draw, exception occurs
Maybe this is the solution:
chart.ChartRenderOptions.UpdateType = ChartUpdateTypes.Async;
chart.ChartRenderOptions.UpdateType = ChartUpdateTypes.Async;
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: Drag and draw, exception occurs
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.
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
useful information
Re: Drag and draw, exception occurs
yes , dragging ViewXY,Keep moving up and down,The curve will deform, like the second figure
-
- Posts: 557
- Joined: Mon Mar 14, 2016 9:22 am
Re: Drag and draw, exception occurs
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.
Please send your (test) project to Support email account or upload here.