]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Return correct index/value id in radar/polarArea (#6581)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Sat, 19 Oct 2019 21:20:48 +0000 (00:20 +0300)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 19 Oct 2019 21:20:48 +0000 (17:20 -0400)
src/controllers/controller.polarArea.js
src/controllers/controller.radar.js

index 76ca3b70cae6430fe5ef74cc825b6790cfc16110..d15ee9112f2f78960bdd2b0a90086fc1b2eb95a9 100644 (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();
index 62763ff0980132096fb604cc120632fbb0dafb98..803c7fb7f62fe66eab2c2e8de2ca13c52895d0c1 100644 (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();