]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add radar chart config options (#6393)
authorAkihiko Kusanagi <nagi@nagi-p.com>
Sun, 21 Jul 2019 12:00:12 +0000 (14:00 +0200)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sun, 21 Jul 2019 12:00:11 +0000 (08:00 -0400)
* Add radar chart config options

* Add default value of spanGaps option for radar charts

* Address review comments

docs/charts/radar.md
src/controllers/controller.radar.js

index 90e05a55e83817de14f5aec63a2bbe0adb18298f..196d6b1eb72d4ecda95002979527982ee4ddd75c 100644 (file)
@@ -143,7 +143,11 @@ The interaction with each point can be controlled with the following properties:
 
 ## Configuration Options
 
-Unlike other charts, the radar chart has no chart specific options.
+The radar chart defines the following configuration options. These options are merged with the global chart configuration options, `Chart.defaults.global`, to form the options passed to the chart.
+
+| Name | Type | Default | Description
+| ---- | ---- | ------- | -----------
+| `spanGaps` | `boolean` | `false` | If false, NaN data causes a break in the line.
 
 ## Scale Options
 
index 57fd8267bd9d349bdf899cdd188aa656c22aeaed..62763ff0980132096fb604cc120632fbb0dafb98 100644 (file)
@@ -8,6 +8,7 @@ var helpers = require('../helpers/index');
 var valueOrDefault = helpers.valueOrDefault;
 
 defaults._set('radar', {
+       spanGaps: false,
        scale: {
                type: 'radialLinear'
        },