Hello,
I have some performance problem in an application I have made with the (Windows Forms) ChartControl that I need help with.
In my application I need to group bars in a specific way (see attached picture). The number of bars in each group can vary and the colors of the bars does not always match which series they belong to, (that is, the bars in a series does not always have the same color as default).
The reason to why I have created several series with only a few points to each is be able to group the columns and to get lines between the groups by using the property: series.DrawColumnSeparatingLines.
The problem now is that it takes very long time for the chart to update when having several series (sometimes up to 70). It seems to be the Add function that takes a long time.
I have made a small application for you to see what it is that I am doing when updating the chart. I'm counting the time that it takes
for only the Add function to execute and presents that time. As you can see it takes about 13-14 seconds to update the chart.
Have I done anything wrong when creating the points to each series before adding it that makes the Add function executing so slow?
Do you perhaps have any ideas how to achieve the same result as shown in the attached picture instead of having so many series?
Best regards
Ana
ChartPerformance.zip