Chart.js
Chart.js copied to clipboard
[BUG] Doughnut Chart: Legend 'left' and 'right' not possible
Hi,
I created an example with a simple Doughnut chart and tried to position the legend on the right side. In the documentation (http://www.chartjs.org/docs/#chart-configuration-legend-configuration) I saw the possible values 'top', 'right', 'bottom' and 'left'.
If I use the property "legend.position", only 'top' and 'bottom' work fine. If I use 'left' or 'right' instead, there is an error "Cannot read "0" of undefined":
https://jsfiddle.net/3pku19sj/
Kind Regards, Eraser
This is fixed in 2.1.5+ (your Fiddle uses 2.1.4). (https://github.com/chartjs/Chart.js/releases/tag/v2.1.5)
Cool. Thanks for this quick response