]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
fix 2 broken links, clarify order property (#9516)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Sun, 8 Aug 2021 20:52:09 +0000 (22:52 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Aug 2021 20:52:09 +0000 (16:52 -0400)
docs/charts/bar.md
docs/charts/bubble.md
docs/charts/line.md
docs/charts/mixed.md
docs/charts/radar.md

index 0543fed6469dbcfc4a7d312fb3d2c81e2b9fda3e..c7ef6670ea24bf317bf5e855532992b5c3dcdacb 100644 (file)
@@ -121,9 +121,9 @@ data: {
 | `grouped` | Should the bars be grouped on index axis. When `true`, all the datasets at same index value will be placed next to each other centering on that index value. When `false`, each bar is placed on its actual index-axis value.
 | `indexAxis` | The base axis of the dataset. `'x'` for vertical bars and `'y'` for horizontal bars.
 | `label` | The label for the dataset which appears in the legend and tooltips.
-| `order` | The drawing order of dataset. Also affects order for stacking, tooltip, and legend.
+| `order` | The drawing order of dataset. Also affects order for stacking, tooltip and legend. [more](mixed.md#drawing-order)
 | `skipNull` | If `true`, null or undefined values will not be used for spacing calculations when determining bar size.
-| `stack` | The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). [more](#stacked-bar-charts)
+| `stack` | The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). [more](#stacked-bar-chart)
 | `xAxisID` | The ID of the x-axis to plot this dataset on.
 | `yAxisID` | The ID of the y-axis to plot this dataset on.
 
index 44bd9bf2b115e098da7494a1f1815abe236ea153..61710badf4bd045f95212c6d8833dc3c5e47ea65 100644 (file)
@@ -72,7 +72,7 @@ All these values, if `undefined`, fallback to the scopes described in [option re
 | ---- | ----
 | `clip` | How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. `0` = clip at chartArea. Clipping can also be configured per side: `clip: {left: 5, top: false, right: -2, bottom: 0}`
 | `label` | The label for the dataset which appears in the legend and tooltips.
-| `order` | The drawing order of dataset. Also affects order for tooltip and legend.
+| `order` | The drawing order of dataset. Also affects order for tooltip and legend. [more](mixed.md#drawing-order)
 
 ### Styling
 
index a41d79d184238084b02863106e053a53d942fdc8..fd674a51910b12635f507a61c51a9b43afc68784 100644 (file)
@@ -94,8 +94,8 @@ All these values, if `undefined`, fallback to the scopes described in [option re
 | `clip` | How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. `0` = clip at chartArea. Clipping can also be configured per side: `clip: {left: 5, top: false, right: -2, bottom: 0}`
 | `indexAxis` | The base axis of the dataset. `'x'` for horizontal lines and `'y'` for vertical lines.
 | `label` | The label for the dataset which appears in the legend and tooltips.
-| `order` | The drawing order of dataset. Also affects order for stacking, tooltip, and legend.
-| `stack` | The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). [more](#stacked-area-charts)
+| `order` | The drawing order of dataset. Also affects order for stacking, tooltip and legend. [more](mixed.md#drawing-order)
+| `stack` | The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). [more](#stacked-area-chart)
 | `xAxisID` | The ID of the x-axis to plot this dataset on.
 | `yAxisID` | The ID of the y-axis to plot this dataset on.
 
index 75acae12a2c61e2a4b4f70d24684b33562b66e2c..84f42f1303c391a41075eae30c97452fbb603736 100644 (file)
@@ -73,6 +73,8 @@ module.exports = {
 
  By default, datasets are drawn such that the first one is top-most. This can be altered by specifying `order` option to datasets. `order` defaults to `0`. Note that this also affects stacking, legend, and tooltip. So it's essentially the same as reordering the datasets.
 
+The `order` property behaves like a weight instead of a specific order, so the higher the number, the sooner that dataset is drawn on the canvas and thus other datasets with a lower order number will get drawn over it.
+
  ```javascript
 var mixedChart = new Chart(ctx, {
     type: 'bar',
index 5281a73f7e1410f0e1f1d0d27207eb44495de358..47e2a8887953ff7b7187f93d7fa54125f6fd082e 100644 (file)
@@ -115,7 +115,7 @@ All these values, if `undefined`, fallback to the scopes described in [option re
 | ---- | ----
 | `clip` | How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. `0` = clip at chartArea. Clipping can also be configured per side: `clip: {left: 5, top: false, right: -2, bottom: 0}`
 | `label` | The label for the dataset which appears in the legend and tooltips.
-| `order` | The drawing order of dataset.
+| `order` | The drawing order of dataset. Also affects order for tooltip and legend. [more](mixed.md#drawing-order)
 
 ### Point Styling