mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-03 06:54:02 +01:00
Fix tooltip title in radar charts (#6238)
This commit is contained in:
committed by
Akihiko Kusanagi
parent
4f722ab619
commit
ddee91eb9f
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user