Skip to content

Commit 6632b8b

Browse files
nagixetimberg
authored andcommitted
Add radar chart config options (#6393)
* Add radar chart config options * Add default value of spanGaps option for radar charts * Address review comments
1 parent 626d8cc commit 6632b8b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/charts/radar.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ The interaction with each point can be controlled with the following properties:
143143

144144
## Configuration Options
145145

146-
Unlike other charts, the radar chart has no chart specific options.
146+
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.
147+
148+
| Name | Type | Default | Description
149+
| ---- | ---- | ------- | -----------
150+
| `spanGaps` | `boolean` | `false` | If false, NaN data causes a break in the line.
147151

148152
## Scale Options
149153

src/controllers/controller.radar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var helpers = require('../helpers/index');
88
var valueOrDefault = helpers.valueOrDefault;
99

1010
defaults._set('radar', {
11+
spanGaps: false,
1112
scale: {
1213
type: 'radialLinear'
1314
},

0 commit comments

Comments
 (0)