Bug Report T294120
Visible to All Users

Chart rendering performance is not optimal when modifying the Series data source at runtime

created 9 years ago

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?

Comments (2)
DevExpress Support Team 9 years ago

    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.

    DevExpress Support Team 9 years ago

      As a temporary workaround, you can refresh the whole data source instead of using consecutive Add/RemoveAt item operations:

      C#
      ObservableCollection<OprGraphData> oldData = oprGraphData; oprGraphData = null; ... //RefreshData ... oprGraphData = oldData;

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Additional information:

      We have improved chart performance for the described scenario. Please note that you can switch the scale type to continuous for better performance:

      C#
      AxisX.DateTimeScaleOptions = new ContinuousDateTimeScaleOptions();

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.