You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chart.js draws datasets in the reverse order (the first dataset in the array is drawn last, thus on top of the others), which means that labels for the first dataset should be drawn on top of the other labels but also not discarded when `display: 'auto'`.
Copy file name to clipboardExpand all lines: docs/guide/positioning.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ display: function(context) {
62
62
The `display: 'auto'` option can be used to prevent overlapping labels, based on the following rules when two labels overlap:
63
63
64
64
- if both labels are `display: true`, they will be drawn overlapping
65
-
- if both labels are `display: 'auto'`, the one with the highest data index will be hidden. If labels are at the same data index, the one with the lowest dataset index will be hidden
65
+
- if both labels are `display: 'auto'`, the one with the highest data index will be hidden. If labels are at the same data index, the one with the highest dataset index will be hidden
66
66
- if one label is `display: true` and the other one is `display: 'auto'`, the one with `'auto'` will be hidden (whatever the data/dataset indices)
0 commit comments