]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Finish incomplete sentence and remove trailing spaces. 2901/head
authorMichael Oberwasserlechner <michaelowl@gmail.com>
Sat, 2 Jul 2016 14:46:29 +0000 (16:46 +0200)
committerMichael Oberwasserlechner <michaelowl@gmail.com>
Sat, 2 Jul 2016 14:46:29 +0000 (16:46 +0200)
docs/01-Chart-Configuration.md

index e34c99777a11163c1ff5fe8373e59268c40acdfd..cba95c080f7622481d91188cfc68fc15053365b8 100644 (file)
@@ -86,7 +86,7 @@ fullWidth | Boolean | true | Marks that this box should take the full width of t
 fontSize | Number | 12 | Font size inherited from global configuration
 fontFamily | String | "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif" | Font family inherited from global configuration
 fontColor | Color | "#666" | Font color inherited from global configuration
-fontStyle | String | 'bold' | Font styling of the title. 
+fontStyle | String | 'bold' | Font styling of the title.
 padding | Number | 10 | Number of pixels to add above and below the title text
 text | String | '' | Title text
 
@@ -160,7 +160,7 @@ Items passed to the legend `onClick` function are the ones returned from `labels
     // For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin
     lineJoin: String,
 
-    // Width of box border 
+    // Width of box border
     lineWidth: Number,
 
     // Stroke style of the legend box
@@ -193,7 +193,7 @@ The tooltip configuration is passed into the `options.tooltips` namespace. The g
 
 Name | Type | Default | Description
 --- | --- | --- | ---
-enabled | Boolean | true | Are tooltips 
+enabled | Boolean | true | Are tooltips enabled
 custom | Function | null | See [section](#chart-configuration-custom-tooltips) below
 mode | String | 'single' | Sets which elements appear in the tooltip. Acceptable options are `'single'`, `'label'` or `'x-axis'`. <br>&nbsp;<br>`single` highlights the closest element. <br>&nbsp;<br>`label` highlights elements in all datasets at the same `X` value. <br>&nbsp;<br>`'x-axis'` also highlights elements in all datasets at the same `X` value, but activates when hovering anywhere within the vertical slice of the x-axis representing that `X` value.
 itemSort | Function | undefined | Allows sorting of [tooltip items](#chart-configuration-tooltip-item-interface). Must implement a function that can be passed to [Array.prototype.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort)
@@ -224,7 +224,7 @@ callbacks | Object | | See the [callbacks section](#chart-configuration-tooltip-
 
 #### Tooltip Callbacks
 
-The tooltip label configuration is nested below the tooltip configuration using the `callbacks` key. The tooltip has the following callbacks for providing text. For all functions, 'this' will be the tooltip object created from the Chart.Tooltip constructor. 
+The tooltip label configuration is nested below the tooltip configuration using the `callbacks` key. The tooltip has the following callbacks for providing text. For all functions, 'this' will be the tooltip object created from the Chart.Tooltip constructor.
 
 All functions are called with the same arguments: a [tooltip item](#chart-configuration-tooltip-item-interface) and the data object passed to the chart. All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.
 
@@ -336,7 +336,7 @@ Arcs are used in the polar area, doughnut and pie charts. They can be configured
 
 Name | Type | Default | Description
 --- | --- | --- | ---
-backgroundColor | Color | 'rgba(0,0,0,0.1)' | Default fill color for arcs. Inherited from the global default 
+backgroundColor | Color | 'rgba(0,0,0,0.1)' | Default fill color for arcs. Inherited from the global default
 borderColor | Color | '#fff' | Default stroke color for arcs
 borderWidth | Number | 2 | Default stroke width for arcs