Many lengend take all space v2.0 Beta, pie is too small

In the v2.0 Beta, when I have many lengends, I can’t see the pie chart when I resize or in a mobile. I tried to set Chart.defaults.global.legend.fullWidth to false, but same result.

chartjs

I think the legend should not take the place of the pie. Or is there a setting that is not in the doc ?

You can try to resize : http://jsbin.com/werifuyeyo/edit

Author: Fantashit

2 thoughts on “Many lengend take all space v2.0 Beta, pie is too small

  1. Sorry but this is not a “great” solution. The legend should induce some extra space bellow the chart just as one may have used his own HTML rendered legend.
    The same issue may appear with a very long title.

  2. Helllo,
    You have to play with he aspect ratio of the chart vs. legend. Like this:
    Chart.defaults.pie.aspectRatio = 1;
    Or
    Chart.defaults.global.maintainAspectRatio = false;
    One of this statements should do the trick.
    JJ

Comments are closed.