Skip to content

Commit

Permalink
Return correct index/value id in radar/polarArea (#6581)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored and etimberg committed Oct 19, 2019
1 parent d386013 commit feaf418
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
14 changes: 14 additions & 0 deletions src/controllers/controller.polarArea.js
Expand Up @@ -123,6 +123,20 @@ module.exports = DatasetController.extend({
'hoverBorderWidth',
],

/**
* @private
*/
_getIndexScaleId: function() {
return this.chart.scale.id;
},

/**
* @private
*/
_getValueScaleId: function() {
return this.chart.scale.id;
},

update: function(reset) {
var me = this;
var dataset = me.getDataset();
Expand Down
21 changes: 14 additions & 7 deletions src/controllers/controller.radar.js
Expand Up @@ -20,13 +20,6 @@ defaults._set('radar', {
});

module.exports = DatasetController.extend({
/**
* @private
*/
_getValueScaleId: function() {
return this.chart.scale.id;
},

datasetElementType: elements.Line,

dataElementType: elements.Point,
Expand Down Expand Up @@ -64,6 +57,20 @@ module.exports = DatasetController.extend({
rotation: 'pointRotation'
},

/**
* @private
*/
_getIndexScaleId: function() {
return this.chart.scale.id;
},

/**
* @private
*/
_getValueScaleId: function() {
return this.chart.scale.id;
},

update: function(reset) {
var me = this;
var meta = me.getMeta();
Expand Down

0 comments on commit feaf418

Please sign in to comment.