Support radar tooltip mode 'label'

This commit is contained in:
Evert Timberg
2016-04-22 20:48:41 -04:00
parent bca5bd874d
commit dc7ad19f29

View File

@@ -250,7 +250,7 @@ module.exports = function(Chart) {
datasetIndex: datasetIndex
});
}
}, null, element._yScale.options.stacked);
}, null);
helpers.each(this._active, function(active) {
if (active) {
@@ -259,10 +259,10 @@ module.exports = function(Chart) {
backgroundColor: active._view.backgroundColor
});
}
}, null, element._yScale.options.stacked);
}, null);
tooltipPosition = this.getAveragePosition(this._active);
tooltipPosition.y = this._active[0]._yScale.getPixelForDecimal(0.5);
//tooltipPosition.y = this._active[0]._yScale.getPixelForDecimal(0.5);
}
// Build the Text Lines