]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Move reverse option for labels to correct section in docs
authorZach Panzarino <zachary@panzarino.com>
Fri, 23 Sep 2016 00:12:40 +0000 (00:12 +0000)
committerZach Panzarino <zachary@panzarino.com>
Fri, 23 Sep 2016 00:12:40 +0000 (00:12 +0000)
Addresses comment in #3102

docs/01-Chart-Configuration.md

index 43e762ba408c6c2e13b7e8dca309aeda2c47165b..8d81d06a68370f7acead20d1ba21108f0d990888 100644 (file)
@@ -130,6 +130,7 @@ fullWidth | Boolean | true | Marks that this box should take the full width of t
 onClick | Function | `function(event, legendItem) {}` | A callback that is called when a 'click' event is registered on top of a label item
 onHover | Function | `function(event, legendItem) {}` | A callback that is called when a 'mousemove' event is registered on top of a label item
 labels |Object|-| See the [Legend Label Configuration](#chart-configuration-legend-label-configuration) section below.
+reverse | Boolean | false | Legend will show datasets in reverse order
 
 #### Legend Label Configuration
 
@@ -145,7 +146,6 @@ fontFamily | String | "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif" | Fon
 padding | Number | 10 | Padding between rows of colored boxes
 generateLabels: | Function | `function(chart) {  }` | Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See [Legend Item](#chart-configuration-legend-item-interface) for details.
 usePointStyle | Boolean | false | Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).
-reverse | Boolean | false | Legend will show datasets in reverse order
 
 #### Legend Item Interface