]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Docs for Title and Legend position incomplete 2971/head
authorMichael Oberwasserlechner <michaelowl@gmail.com>
Thu, 14 Jul 2016 10:30:34 +0000 (12:30 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Jul 2016 10:30:34 +0000 (12:30 +0200)
Positioning of title and legend to the left or to the right works.

docs/01-Chart-Configuration.md

index 5a86274566f7f1aa1d34fadfd96d34a56331ea8b..43bf5ab39769c2753269c37dcbcf29449dacbb9c 100644 (file)
@@ -92,7 +92,7 @@ The title configuration is passed into the `options.title` namespace. The global
 Name | Type | Default | Description
 --- | --- | --- | ---
 display | Boolean | false | Display the title block
-position | String | 'top' | Position of the title. Only 'top' or 'bottom' are currently allowed
+position | String | 'top' | Position of the title. Possible values are 'top', 'left', 'bottom' and 'right'.
 fullWidth | Boolean | true | Marks that this box should take the full width of the canvas (pushing down other boxes)
 fontSize | Number | 12 | Font size inherited from global configuration
 fontFamily | String | "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif" | Font family inherited from global configuration
@@ -125,7 +125,7 @@ The legend configuration is passed into the `options.legend` namespace. The glob
 Name | Type | Default | Description
 --- | --- | --- | ---
 display | Boolean | true | Is the legend displayed
-position | String | 'top' | Position of the legend. Options are 'top' or 'bottom'
+position | String | 'top' | Position of the legend. Possible values are 'top', 'left', 'bottom' and 'right'.
 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 |Object|-| See the [Legend Label Configuration](#chart-configuration-legend-label-configuration) section below.