]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Added dots to labels options in global.defaults.legend .
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 23 Apr 2016 20:54:13 +0000 (22:54 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 23 Apr 2016 20:54:13 +0000 (22:54 +0200)
docs/00-Getting-Started.md

index b8d5ec40ba73087c6ce6fc35f1c1e7c5b0322dbb..82d2349d25fdb4921b45e3737546a9b15f6dc947 100644 (file)
@@ -145,13 +145,13 @@ position | String | 'top' | Position of the legend. Options are 'top' or 'bottom
 fullWidth | Boolean | true | Marks that this box should take the full width of the canvas (pushing down other boxes)
 onClick | Function | `function(event, legendItem) {}` | A callback that is called when a click is registered on top of a label item
 labels |-|-|-
-*labels*boxWidth | Number | 40 | Width of coloured box
-*labels*fontSize | Number | 12 | Font size
-*labels*fontStyle | String | "normal" |
-*labels*fontColor | Color | "#666" |
-*labels*fontFamily | String | "Helvetica Neue" |
-*labels*padding | Number | 10 | Padding between rows of colored boxes
-*labels*generateLabels: | Function | `function(data) {  }` | Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. Styles that can be returned are `fillStyle`, `strokeStyle`, `lineCap`, `lineDash`, `lineDashOffset`, `lineWidth`, `lineJoin`. Return a `hidden` attribute to indicate that the label refers to something that is not visible. A strikethrough style will be given to the text in this case.
+*labels*.boxWidth | Number | 40 | Width of coloured box
+*labels*.fontSize | Number | 12 | Font size
+*labels*.fontStyle | String | "normal" |
+*labels*.fontColor | Color | "#666" |
+*labels*.fontFamily | String | "Helvetica Neue" |
+*labels*.padding | Number | 10 | Padding between rows of colored boxes
+*labels*.generateLabels: | Function | `function(data) {  }` | Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. Styles that can be returned are `fillStyle`, `strokeStyle`, `lineCap`, `lineDash`, `lineDashOffset`, `lineWidth`, `lineJoin`. Return a `hidden` attribute to indicate that the label refers to something that is not visible. A strikethrough style will be given to the text in this case.
 
 The global options for tooltips are defined in `Chart.defaults.global.tooltips`.