Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

[BUG] Doughnut Chart: Legend 'left' and 'right' not possible

Open Eraser666 opened this issue 10 years ago • 4 comments

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

Eraser666 avatar Nov 28 '16 16:11 Eraser666

This is fixed in 2.1.5+ (your Fiddle uses 2.1.4). (https://github.com/chartjs/Chart.js/releases/tag/v2.1.5)

jeffcarey avatar Nov 28 '16 16:11 jeffcarey

Cool. Thanks for this quick response

Eraser666 avatar Nov 29 '16 12:11 Eraser666