From: Jukka Kurkela Date: Fri, 17 Jul 2020 20:24:06 +0000 (+0300) Subject: Update spanGaps docs (#7643) X-Git-Tag: v3.0.0-beta.2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d3579bb18897e4649dbe86825761faf0877d76;p=thirdparty%2FChart.js.git Update spanGaps docs (#7643) --- diff --git a/docs/docs/charts/line.mdx b/docs/docs/charts/line.mdx index 19279229a..9fc821b30 100644 --- a/docs/docs/charts/line.mdx +++ b/docs/docs/charts/line.mdx @@ -61,9 +61,9 @@ 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` -| [`clip`](#general) | number|object | - | - | `undefined` +| [`clip`](#general) | `number`\|`object` | - | - | `undefined` | [`cubicInterpolationMode`](#cubicinterpolationmode) | `string` | Yes | - | `'default'` -| [`fill`](#line-styling) | boolean|string | Yes | - | `true` +| [`fill`](#line-styling) | `boolean`\|`string` | Yes | - | `true` | [`hoverBackgroundColor`](#line-styling) | [`Color`](../general/colors.md) | Yes | - | `undefined` | [`hoverBorderCapStyle`](#line-styling) | `string` | Yes | - | `undefined` | [`hoverBorderColor`](#line-styling) | [`Color`](../general/colors.md) | Yes | - | `undefined` @@ -84,10 +84,10 @@ The line chart allows a number of properties to be specified for each dataset. T | [`pointHoverRadius`](#interactions) | `number` | Yes | Yes | `4` | [`pointRadius`](#point-styling) | `number` | Yes | Yes | `3` | [`pointRotation`](#point-styling) | `number` | Yes | Yes | `0` -| [`pointStyle`](#point-styling) | string|Image | Yes | Yes | `'circle'` +| [`pointStyle`](#point-styling) | `string`\|`Image` | Yes | Yes | `'circle'` | [`showLine`](#line-styling) | `boolean` | - | - | `undefined` -| [`spanGaps`](#line-styling) | boolean|number | - | - | `undefined` -| [`stepped`](#stepped) | boolean|string | - | - | `false` +| [`spanGaps`](#line-styling) | `boolean`\|`number` | - | - | `undefined` +| [`stepped`](#stepped) | `boolean`\|`string` | - | - | `false` | [`xAxisID`](#general) | `string` | - | - | first x axis | [`yAxisID`](#general) | `string` | - | - | first y axis @@ -180,7 +180,7 @@ The line chart defines the following configuration options. These options are me | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `showLines` | `boolean` | `true` | If false, the lines between points are not drawn. -| `spanGaps` | `boolean` | `false` | If false, NaN data causes a break in the line. +| `spanGaps` | `boolean`\|`number` | `false` | If true, lines will be drawn between points with no or null data. If false, points with `NaN` data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used. ## Default Options