sunjavagroups / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Pie slice outlines still drawn when stroke.width equals zero #585

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the pie chart plugin, if setting options.pie.stroke.width to zero, the slice 
outlines are still drawn with a width of 1.

Setting ctx.lineWidth = options.series.pie.stroke.width in drawPie() on line 
376 does not seem to be respected by the context, as ctx.lineWidth remains at 1.

I'm using the following IF around the 'draw slice outlines' section:
if (options.series.pie.stroke.width > 0) { }

Tested issue and suggested fix in Chromium 95834 and Firefox 5.0.1 (Mac 10.7)

Original issue reported on code.google.com by ch...@minett.me.uk on 9 Aug 2011 at 10:24

GoogleCodeExporter commented 8 years ago
Sorry, in my first line I did mean 'options.series.pie.stroke.width' instead of 
'options.pie.stroke.width' as I originally wrote!

Original comment by ch...@minett.me.uk on 9 Aug 2011 at 10:26

GoogleCodeExporter commented 8 years ago
Is this fix going to be incorporated with the main code base?

Original comment by scott.ke...@gmail.com on 13 Sep 2011 at 7:06

GoogleCodeExporter commented 8 years ago
We found the same issue and the same workaround as the submitter.

In the meantime, if you don't want to patch the file yourself, you could try 
width: 0.000001. The stroke almost disappears.

Original comment by tiagoada...@gmail.com on 4 Oct 2011 at 11:31

GoogleCodeExporter commented 8 years ago
This is fixed in the master branch; thanks for reporting this bug!

Original comment by dnsch...@gmail.com on 2 May 2012 at 1:07