From: Jacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com> Date: Sun, 7 Mar 2021 20:43:31 +0000 (+0100) Subject: Update legend.md (#8582) X-Git-Tag: v3.0.0-beta.14~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a48604df7635f0256ca4130abb467ad1c772f5c;p=thirdparty%2FChart.js.git Update legend.md (#8582) Noticed from https://github.com/chartjs/Chart.js/issues/6185#issuecomment-748097030 that there is an option to get the legend in the chart, this was not documented. Only difference I noticed from kurkles screenshot is that the legend now shows in the middle instead of in the top corner. https://jsfiddle.net/Leelenaleee/wszdv8q0/2/ --- diff --git a/docs/docs/configuration/legend.md b/docs/docs/configuration/legend.md index c123e2172..9b1f3114d 100644 --- a/docs/docs/configuration/legend.md +++ b/docs/docs/configuration/legend.md @@ -33,6 +33,9 @@ Position of the legend. Options are: * `'left'` * `'bottom'` * `'right'` +* `'chartArea'` + +When using the `'chartArea'` option the legend position is at the moment not configurable, it will always be on the left side of the chart in the middle. ## Align