Opened 9 years ago

Closed 4 years ago

#11973 closed defect (fixed)

dojo Chart rendering performance is bad in IE and cause IE to prompt stop script dialog

Reported by: JayZ(zhouxiang) Owned by: Eugene Lazutkin
Priority: high Milestone: 1.11
Component: Charting Version: 1.5
Keywords: Cc: shiwcsdl@…, xiangxz@…
Blocked By: Blocking:

Description

We are using dojo Chart in IBM Mashup Center development, we have a severe defect caused by dojo Chart.

To isolated the problem, we tried the test_Chart.html to verify the chart rendering performance in IE.

The result is when we call addSeries 600 times and the chart render method will not responding in IE, IE prompt the stop script dialog. See the attachment error.jpg.

Attachments (2)

test_Chart.html (1.8 KB) - added by JayZ(zhouxiang) 9 years ago.
error.JPG (43.7 KB) - added by JayZ(zhouxiang) 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by JayZ(zhouxiang)

Attachment: test_Chart.html added

Changed 9 years ago by JayZ(zhouxiang)

Attachment: error.JPG added

comment:1 Changed 9 years ago by JayZ(zhouxiang)

The main problem is the "render()" method, which will render all the series in one time. But for each series entry, there are a lot of javascript statements have to be execute and will cost a lot of time, which already exceed IE browser's limitation on javascript processing(both time and statement limitation), so an alert dialog comes out.

maybe we should do some modification on the "render()" method of each plot, if there are many series need to be rendered at one time, we can provide a way to render several series entry(like 50, but not all the series) at first, and then the next 50 in a different "call stack"(using setTimeout), and so on till all the series being rendered. you will see the 600 series entry here be rendered separately, this is one solution I can see.

comment:2 Changed 9 years ago by Eugene Lazutkin

Milestone: tbdfuture
Status: newassigned

comment:3 Changed 9 years ago by Hong Bing Zhang

Is there target date to fix this issue? It happens on dojo 1.4.3 as we use this dojo version in mashups product.

comment:4 Changed 4 years ago by dylan

Cc: shiwcsdl@cn.ibm.com; xiangxz@cn.ibm.comshiwcsdl@cn.ibm.com, xiangxz@cn.ibm.com
Milestone: future1.11
Resolution: fixed
Status: assignedclosed

Charting performance was addressed in later releases. If this is still an issue, please re-open.

Note: See TracTickets for help on using tickets.