Resolve issue rendering multiple donut charts #1214

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@EricWegscheid

After the innerRadius value is set, somehow it carries over to all other '.flot-overlay' canvases of pie graphs in the DOM as they are redrawn. To resolve this: inside drawOverlay() at line 715, I check this particular instance's options to determine whether we really do need to drawDonutHole():

if (options.series.pie.innerRadius > 0) {
drawDonutHole(octx);

}

@EricWegscheid EricWegscheid Resolved issue rendering multiple donut charts
After the innerRadius value is set, somehow it carries over to all other '.flot-overlay' canvases in the DOM as they are redrawn. So, inside drawOverlay() at line 715, I check this particular instance's options to determine whether we really do need to drawDonutHole():
if (options.series.pie.innerRadius > 0) {
    drawDonutHole(octx);	
}
25ad0b9
@dnschnur
Flot member

Are you sure you were using the latest version when you saw this? This sounds identical to #1073 and #1128 that were fixed in 0.8.2.

@dnschnur dnschnur closed this Jan 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment