-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Original author: [email protected] (June 22, 2010 20:59:22)
When rendering pie charts with a single non-zero data value (i.e. the pie will show 100%), certain values cause the chart to be rendered differently. The difference appears (in Firefox 3.6.3) as a thin white or light line along the starting radius (at 12 o'clock in the attached screenshot) of the pie for these values, while all other values render as a solid filled circle.
The values that cause this aberration can be described by the expression (x * 2^n) where n is any non-negative integer and x is an element of a seemingly random set of integers that includes the following (exhaustive up to 360): (11, 13, 15, 41, 47, 83, 93, 99, 109, 165, 167, 175, 177, 187, 197 , 207, 219, 229, 339, 341, 343). Thus, for example, charting a value of 11, 22, 44, or 88 will cause the bug, but not 33, 55, 66, or 77. The size of the data set being charted doesn't seem to matter; if one value is one of these, and the rest (if any) are 0, the bug will occur.
The bug is much more severe when using explorercanvas to render the charts in IE (IE6 in the case I tested). Whatever rendering quirk this bug causes in flot seems to prevent explorercanvas from rendering the pie at all in IE6 (the label shows but the circle does not). Note that the table also seems to cause problems in IE6, so in order to test this with the attached code you'll need to remove the table tags.
Original issue: http://code.google.com/p/flot/issues/detail?id=365