kbwood / svg

jQuery SVG plugin
http://keith-wood.name/svg.html
168 stars 65 forks source link

Pie chart invisible if all but one datum are 0 #2

Open henrypijames opened 12 years ago

henrypijames commented 12 years ago
graph.type('pie');
graph.addSeries('A', [0, 1], 'red', 'none');
graph.addSeries('B', [2, 3], 'green', 'none');

The code above should produce two pie charts, the first of which is entirely green (a green circle). In reality, the first pie chart is invisible. Guess the 100% case needs special handling.