From: Daan De Meyer Date: Sat, 23 Apr 2016 20:54:13 +0000 (+0200) Subject: Added dots to labels options in global.defaults.legend . X-Git-Tag: 2.1.0~49^2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f840216326d77bcf713c8b71de833430a22beeba;p=thirdparty%2FChart.js.git Added dots to labels options in global.defaults.legend . --- diff --git a/docs/00-Getting-Started.md b/docs/00-Getting-Started.md index b8d5ec40b..82d2349d2 100644 --- a/docs/00-Getting-Started.md +++ b/docs/00-Getting-Started.md @@ -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`.