#17077 closed defect (fixed)
[patch][CCLA]Chart.destroy() causes canvas null pointer
Reported by: | pschoepf | Owned by: | Patrick Ruzand |
---|---|---|---|
Priority: | undecided | Milestone: | 1.8.5 |
Component: | DojoX GFX | Version: | 1.8.3 |
Keywords: | Cc: | Patrick Ruzand | |
Blocked By: | Blocking: |
Description
Hi, I have a mobile app that heavility uses dojo charts. Since SVG rendering of line charts is quite slow on iPad (IOS6)we use the canvas renderer implementation. This causes a problem when destroy() is called on the chart. It seems like it triggers makeDirty() on the canvas when then runs into its _render method and produces a "Cannot call method 'getContext' of null". I will attach a modified test case which shows the problem.
Btw, does anybody know why SVG is so slow compared to canvas especially when it comes to TouchZoomAndPan? ? Its already unusable on iPad3 with 3-4 series with each having about 50 data points.
Attachments (3)
Change History (11)
Changed 8 years ago by
Attachment: | test_grid_destroy.html added |
---|
comment:1 Changed 8 years ago by
Component: | General → Charting |
---|---|
Owner: | set to Eugene Lazutkin |
comment:2 Changed 8 years ago by
Cc: | Patrick Ruzand added |
---|---|
Status: | new → open |
I suspect a gfx issue not a charting issue.
For the performance question I'm testing http://demos.dojotoolkit.org/demos/mobileCharting on an iPad 1 (so older than 2) and even though not as fast as I would hope this looks reasonable?
comment:3 Changed 8 years ago by
Component: | Charting → DojoX GFX |
---|---|
Owner: | changed from Eugene Lazutkin to Patrick Ruzand |
Status: | open → assigned |
I confirm it's a gfx issue. I'm handling it.
comment:4 Changed 8 years ago by
Summary: | Chart.destroy() causes canvas null pointer → [patch][CCLA]Chart.destroy() causes canvas null pointer |
---|
comment:5 Changed 8 years ago by
Milestone: | tbd → 1.9.1 |
---|
comment:8 Changed 8 years ago by
Milestone: | 1.9.1 → 1.8.5 |
---|
Testcase showing error