I use version 13.2.13 DevExpress components in the program.
In attempt of use of the DevExpress components of version 15.1.7 it was found that
the ChartControl component of version 15.1.7 works by 6 times more slowly the ChartControl components of version 13.2.13.
The program with the ChartControl component of version 13.2.13 redraws the diagram every second (loading of the processor - 9%).
The program with the ChartControl component of version 15.1.7 redraws the diagram of 1 times in two (three) seconds (loading of the processor - 50%).
Creation of object of ChartControl is given in the OprGraph.cs file.
Copying of the diagram happens every second:
OprGraphData p = new OprGraphData (…);
…
oprGraphData.RemoveAt(0);
oprGraphData.Add§;
By operation with version 13.2.13 ChartControl the RemoveAt and Add methods are executed for 150 milliseconds,
and in version 15.1.7 - 900 milliseconds.
Why ChartControl component of version 15.1.7 works by 6 times more slowly the ChartControl components of version 13.2.13?
The ChartControl component of version 15.1.7 it is intended for display of the static (not changing) data?
Hi Olena,I have successfully reproduced the described behavior on my side. It will require some additional time to research it in greater detail. We will inform you once we have any progress on this issue.
As a temporary workaround, you can refresh the whole data source instead of using consecutive Add/RemoveAt item operations:
ObservableCollection<OprGraphData> oldData = oprGraphData; oprGraphData = null; ... //RefreshData ... oprGraphData = oldData;