FVANCOP / ChartNew.js

MIT License
420 stars 143 forks source link

Pie chart legend isn't shown when only one dataset. #511

Closed ggywebtech closed 7 years ago

ggywebtech commented 7 years ago

Hi, I have a few Pie charts where sometimes there is only one dataset and the legend does not get drawn. I have tested this with the animation_pie.html by removing all but one dataset and the legend is not drawn but with two datasets it is. I have tried legendDrawEmptyData, which is not quite what I'm after but because I have other charts where I use zero values for items that I don't want to be drawn, this then is opposite to the look I need.

Thanks and love the work you've done.

ggywebtech commented 7 years ago

Forget that. I don't know how I missed it! showSingleValue : true