From: Jukka Kurkela Date: Sat, 19 Oct 2019 21:20:48 +0000 (+0300) Subject: Return correct index/value id in radar/polarArea (#6581) X-Git-Tag: v2.9.0~1^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=feaf418d4eab07b7c313a8f392a979ab2e4bc9c9;p=thirdparty%2FChart.js.git Return correct index/value id in radar/polarArea (#6581) --- diff --git a/src/controllers/controller.polarArea.js b/src/controllers/controller.polarArea.js index 76ca3b70c..d15ee9112 100644 --- a/src/controllers/controller.polarArea.js +++ b/src/controllers/controller.polarArea.js @@ -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(); diff --git a/src/controllers/controller.radar.js b/src/controllers/controller.radar.js index 62763ff09..803c7fb7f 100644 --- a/src/controllers/controller.radar.js +++ b/src/controllers/controller.radar.js @@ -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();