diff --git a/docs/charts/line.md b/docs/charts/line.md
index 77fc1356e3e..12b8838c642 100644
--- a/docs/charts/line.md
+++ b/docs/charts/line.md
@@ -77,7 +77,7 @@ The line chart allows a number of properties to be specified for each dataset. T
| [`pointRotation`](#point-styling) | `number` | Yes | Yes | `0`
| [`pointStyle`](#point-styling) | string|Image
| Yes | Yes | `'circle'`
| [`showLine`](#line-styling) | `boolean` | - | - | `undefined`
-| [`spanGaps`](#line-styling) | `boolean` | - | - | `undefined`
+| [`spanGaps`](#line-styling) | boolean|number
| - | - | `undefined`
| [`steppedLine`](#stepped-line) | boolean|string
| - | - | `false`
| [`xAxisID`](#general) | `string` | - | - | first x axis
| [`yAxisID`](#general) | `string` | - | - | first y axis
@@ -124,7 +124,7 @@ The style of the line can be controlled with the following properties:
| `fill` | How to fill the area under the line. See [area charts](area.md).
| `lineTension` | Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.
| `showLine` | If false, the line is not drawn for this dataset.
-| `spanGaps` | 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.
+| `spanGaps` | 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.
If the value is `undefined`, `showLine` and `spanGaps` fallback to the associated [chart configuration options](#configuration-options). The rest of the values fallback to the associated [`elements.line.*`](../configuration/elements.md#line-configuration) options.
diff --git a/samples/samples.js b/samples/samples.js
index 53084d54754..518b7696c5c 100644
--- a/samples/samples.js
+++ b/samples/samples.js
@@ -121,6 +121,9 @@
}, {
title: 'Line (point data)',
path: 'scales/time/line-point-data.html'
+ }, {
+ title: 'Line (break on 2 day gap)',
+ path: 'scales/time/line-max-span.html'
}, {
title: 'Time Series',
path: 'scales/time/financial.html'
diff --git a/samples/scales/time/line-max-span.html b/samples/scales/time/line-max-span.html
new file mode 100644
index 00000000000..64c0038731f
--- /dev/null
+++ b/samples/scales/time/line-max-span.html
@@ -0,0 +1,150 @@
+
+
+
+