Skip to content

Commit

Permalink
Add radar chart config options (chartjs#6393)
Browse files Browse the repository at this point in the history
* Add radar chart config options

* Add default value of spanGaps option for radar charts

* Address review comments
  • Loading branch information
nagix authored and etimberg committed Jul 21, 2019
1 parent e028b02 commit 051fdbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/charts/radar.md
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/controllers/controller.radar.js
Expand Up @@ -8,6 +8,7 @@ var helpers = require('../helpers/index');
var valueOrDefault = helpers.valueOrDefault;

defaults._set('radar', {
spanGaps: false,
scale: {
type: 'radialLinear'
},
Expand Down

0 comments on commit 051fdbb

Please sign in to comment.