Posted 19 September 2023, 6:14 pm EST
I found the bubble plot had a serious performance issue: the rendering time increases quadratically based on the number of points. So for 50k points, there would be at least 10 seconds delay. I have spotted the problematic code in bubble plotter’s _drawSymbol:
var areas = this.hitTester._map[this.chart.series.indexOf(series)];
if (areas != null) {
var len = areas.length;
for (var i = len - 1; i >= 0; i--) {
var area = areas[i];
if (area.tag && area.tag.pointIndex == pointIndex) {
var ca = wijmo.tryCast(area, chart._CircleArea);
if (ca)
ca.setRadius(0.5 * sz);
}
}
}
This code iterates through every point for every draw symbol process which significantly impacts the performance. Could you please fix this issue? Thanks.