#7428 closed defect (fixed)
Redrawing chart in FF3 causes it to be duplicated below
Reported by: | jwcnmr | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | Charting | Version: | 1.1.1 |
Keywords: | Chart2D, Firefox 3 | Cc: | |
Blocked By: | Blocking: |
Description
If you create a simple x-y line Chart2D plot using a button to cause it to be drawn, and click the button again, the chart is redrawn in the same spot in IE, but is drawn again below the previous plot in FF3. I believe that the IE behavior is the expected one since creating a chart with the same ID is supposed to replaced the previous one. In the attached example, a flag is set to switch between two slightly different data sets so you can see the the plot change in IE.
Attachments (2)
Change History (11)
Changed 13 years ago by
comment:2 Changed 13 years ago by
Component: | DojoX GFX → Charting |
---|---|
Status: | new → assigned |
comment:4 Changed 13 years ago by
Priority: | normal → high |
---|
comment:6 Changed 13 years ago by
There are two problems:
- You forgot to call destroy() on the old chart before creating the new one.
- There is a bug in dojox.charting that prevents the correct destruction (see #7293).
I am adding the corrected example that calls destroy() when appropriate. The fix for the dojox.charting bug will be committed shortly.
comment:7 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:8 Changed 13 years ago by
comment:9 Changed 12 years ago by
Milestone: | future → 1.3 |
---|
batch move of tickets marked 'future' in the 1.3 timeframe
Chart2D demo of re-plotting probelm in FF3