Opened 8 years ago

Closed 7 years ago

#13423 closed defect (fixed)

dojox.charting.plot2d.Columns/Bars and subclass with animation crashed on FF with canvas if one of the value is 0

Reported by: cjolif Owned by: cjolif
Priority: high Milestone: 1.8
Component: Charting Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by cjolif)

dojox.charting.plot2d.Columns & Bars and subclasses with animation crash on FF with canvas if one of the value is 0.

This comes from the animation code that does divide a value by the target value of the animation, in this case 0 leading to an Infinity value. That value is probably just "ignored" by SVG renderer and other Canvas renderers but cause the following error on Firefox canvas:

An invalid or illegal string was specified" code: "12

Attachments (1)

test_animcanvas.html (1.5 KB) - added by cjolif 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by cjolif

Attachment: test_animcanvas.html added

comment:1 Changed 8 years ago by cjolif

Description: modified (diff)

comment:2 Changed 8 years ago by cjolif

Owner: changed from Eugene Lazutkin to cjolif
Status: newassigned

comment:3 Changed 7 years ago by cjolif

Milestone: tbd1.8

comment:4 Changed 7 years ago by cjolif

Resolution: fixed
Status: assignedclosed

In [28195]:

fixes #13423, #15021. Avoid dividing by zero during animation.

Note: See TracTickets for help on using tickets.