Fix tooltip title in radar charts (#6238)

This commit is contained in:
Jukka Kurkela
2019-05-03 10:04:25 +03:00
committed by Akihiko Kusanagi
parent 4f722ab619
commit ddee91eb9f
2 changed files with 1 additions and 9 deletions

View 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,

View 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');
});
});