Skip to content

Commit ddee91e

Browse files
kurklenagix
authored andcommitted
Fix tooltip title in radar charts (#6238)
1 parent 4f722ab commit ddee91e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/controllers/controller.radar.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ module.exports = DatasetController.extend({
2727
return this.chart.scale.id;
2828
},
2929

30-
/**
31-
* @private
32-
*/
33-
_getIndexScaleId: function() {
34-
return this.chart.scale.id;
35-
},
36-
3730
datasetElementType: elements.Line,
3831

3932
dataElementType: elements.Point,

test/specs/controller.radar.tests.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ describe('Chart.controllers.radar', function() {
444444
expect(meta1.data[0]._model.radius).toBe(20);
445445
});
446446

447-
it('should return same id for index and value scale', function() {
447+
it('should return id for value scale', function() {
448448
var chart = window.acquireChart({
449449
type: 'radar',
450450
data: {
@@ -460,7 +460,6 @@ describe('Chart.controllers.radar', function() {
460460
});
461461

462462
var controller = chart.getDatasetMeta(0).controller;
463-
expect(controller._getIndexScaleId()).toBe('test');
464463
expect(controller._getValueScaleId()).toBe('test');
465464
});
466465
});

0 commit comments

Comments
 (0)