]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update legend.md (#8582)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Sun, 7 Mar 2021 20:43:31 +0000 (21:43 +0100)
committerGitHub <noreply@github.com>
Sun, 7 Mar 2021 20:43:31 +0000 (22:43 +0200)
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/

docs/docs/configuration/legend.md

index c123e21724bcb6488b365b2d33570b88a915fcb8..9b1f3114dae95c4f256620ede5365e4d05d3694c 100644 (file)
@@ -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