Skip to content

Commit

Permalink
Use option helper
Browse files Browse the repository at this point in the history
  • Loading branch information
etimberg committed May 20, 2018
1 parent 7d04d0a commit 3e03689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/controller.radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = function(Chart) {
// Model
_model: {
// Appearance
spanGaps: dataset.spanGaps !== undefined ? dataset.spanGaps : me.chart.options.spanGaps,
spanGaps: helpers.valueOrDefault(dataset.spanGaps, me.chart.options.spanGaps),
tension: custom.tension ? custom.tension : helpers.valueOrDefault(dataset.lineTension, lineElementOptions.tension),
backgroundColor: custom.backgroundColor ? custom.backgroundColor : (dataset.backgroundColor || lineElementOptions.backgroundColor),
borderWidth: custom.borderWidth ? custom.borderWidth : (dataset.borderWidth || lineElementOptions.borderWidth),
Expand Down

0 comments on commit 3e03689

Please sign in to comment.