]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Make docs consistent for cubicInterpolationMode and fill (#6132)
authorstockiNail <stocki.nail@gmail.com>
Mon, 8 Apr 2019 07:42:06 +0000 (09:42 +0200)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Mon, 8 Apr 2019 07:42:06 +0000 (09:42 +0200)
docs/charts/line.md
docs/configuration/elements.md

index 6b7385d74c00b91f90abc155aa2b9a9b99c94fe0..bd2a24c98d259e836a6c5a7aa54ea7dd943b3c96 100644 (file)
@@ -50,7 +50,7 @@ The line chart allows a number of properties to be specified for each dataset. T
 | [`borderDashOffset`](#line-styling) | `number` | Yes | - | `0.0`
 | [`borderJoinStyle`](#line-styling) | `string` | Yes | - | `'miter'`
 | [`borderWidth`](#line-styling) | `number` | Yes | - | `3`
-| [`cubicInterpolationMode`](#cubicinterpolationmode) | `string` | Yes | - | `''`
+| [`cubicInterpolationMode`](#cubicinterpolationmode) | `string` | Yes | - | `'default'`
 | [`fill`](#line-styling) | <code>boolean&#124;string</code> | Yes | - | `true`
 | [`label`](#general) | `string` | - | - | `''`
 | [`lineTension`](#line-styling) | `number` | - | - | `0.4`
index a2a794d3de21d27cd3e891de06eedd1079a2e624..ebeac79df56b3918ddeebaf172976bed4e0c439f 100644 (file)
@@ -59,7 +59,8 @@ Global line options: `Chart.defaults.global.elements.line`.
 | `borderDashOffset` | `number` | `0.0` | Line dash offset. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset).
 | `borderJoinStyle` | `string` | `'miter'` | Line join style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin).
 | `capBezierPoints` | `boolean` | `true` | `true` to keep Bézier control inside the chart, `false` for no restriction.
-| `fill` | <code>boolean&#124;string</code> | `true` | Fill location: `'zero'`, `'top'`, `'bottom'`, `true` (eq. `'zero'`) or `false` (no fill).
+| `cubicInterpolationMode` | `string` | `'default'` |  Interpolation mode to apply. [See more...](../charts/line.md#cubicinterpolationmode) 
+| `fill` | <code>boolean&#124;string</code> | `true` | How to fill the area under the line. See [area charts](../charts/area.md#filling-modes).
 | `stepped` | `boolean` | `false` | `true` to show the line as a stepped line (`tension` will be ignored).
 
 ## Rectangle Configuration