]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix tooltip title in radar charts (#6238)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Fri, 3 May 2019 07:04:25 +0000 (10:04 +0300)
committerAkihiko Kusanagi <nagi@nagi-p.com>
Fri, 3 May 2019 07:04:25 +0000 (15:04 +0800)
src/controllers/controller.radar.js
test/specs/controller.radar.tests.js

index 20383c677e662953976bf12e43df4fa3cc1a7ac9..f11af4dcc7f033bcc32edd7e0b78654bbd6fb624 100644 (file)
@@ -27,13 +27,6 @@ module.exports = DatasetController.extend({
                return this.chart.scale.id;
        },
 
-       /**
-        * @private
-        */
-       _getIndexScaleId: function() {
-               return this.chart.scale.id;
-       },
-
        datasetElementType: elements.Line,
 
        dataElementType: elements.Point,
index b9a233d129b6e82df753f2e5505164c35dc00cae..d00e3674a8cb88758bfef5500909c1daedcac017 100644 (file)
@@ -444,7 +444,7 @@ describe('Chart.controllers.radar', function() {
                expect(meta1.data[0]._model.radius).toBe(20);
        });
 
-       it('should return same id for index and value scale', function() {
+       it('should return id for value scale', function() {
                var chart = window.acquireChart({
                        type: 'radar',
                        data: {
@@ -460,7 +460,6 @@ describe('Chart.controllers.radar', function() {
                });
 
                var controller = chart.getDatasetMeta(0).controller;
-               expect(controller._getIndexScaleId()).toBe('test');
                expect(controller._getValueScaleId()).toBe('test');
        });
 });