Return correct index/value id in radar/polarArea (#6581)

This commit is contained in:
Jukka Kurkela 2019-10-20 00:20:48 +03:00 committed by Evert Timberg
parent d3860137fe
commit feaf418d4e
2 changed files with 28 additions and 7 deletions

View File

@ -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();

View File

@ -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,
@ -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();