Hi experts
I make a program for editing graphs by dragging and dropping points on the graph, as there is a lot of data in excel and it is inconvenient to edit them.
The question is how can I reduce the time of loading and drawing these charts?
And how can I increase the performance of the program, when I move the mouse over the schedule, the program takes a long time to process before showing cues with the values of points of all the charts and also when I press the smooth the schedule it calculates the data quickly, but draws a new chart very long.
I attach a link to google disk with the project and one of the excel files I can not attach the archive because the file size is large).
https://drive.google.com/drive/folders/1X7BGtRMLZzZ70vkfQPNz0oTBzL0ynnQW?usp=sharing
|
Hi Dmitriy Shilin,
We have analyzed the performance with provided sample and found that loading data from excel sheet taking more time than chart rendering. To confirm that, we have added two timer in sample to checking the time taken for both chart rendering and data loading from excel sheet with below code example.
Refer the below screenshot for time taken to load the data from excel sheet.
Also, refer the below chart screenshot for time taken to render the chart after data taken from the excel sheet.
We have included some additional code for improving the performance in chart control. For more details to improve performance, please refer the below link.
We have attached the modified sample for your reference. Please find the sample from the below link and let us know if you have any further assistance.
|
Hi, thank you for reducing the time of loading data from the file, but the main difficulty has not disappeared, it occurs when you edit the chart:
1) The program is slow in displaying Trackball for charts.
2) Also slows down rendering the area for scaling
chartControl1.EnableXZooming = true;
chartControl1.EnableYZooming = true;
3) And the point movement I implemented with mouse movement is also slow when I change the point position and redraw the chart.
Hi, to solve my problem can only use DirectX or there are other solutions, just if you use DirectX you have to redo everything ;)