Merge pull request #414 from nnnick/feature/dataset-label-tooltip

Add datasetLabel to elements for tooltip templates
This commit is contained in:
Nick Downie 2014-07-02 21:36:39 +01:00
commit 3f9e5ab7a2
3 changed files with 3 additions and 2 deletions

View File

@ -109,6 +109,7 @@
datasetObject.bars.push(new this.BarClass({
value : dataPoint,
label : data.labels[index],
datasetLabel: dataset.label,
strokeColor : dataset.strokeColor,
fillColor : dataset.fillColor,
highlightFill : dataset.highlightFill || dataset.fillColor,

View File

@ -104,8 +104,7 @@
datasetObject.points.push(new this.PointClass({
value : dataPoint,
label : data.labels[index],
// x: this.scale.calculateX(index),
// y: this.scale.endPoint,
datasetLabel: dataset.label,
strokeColor : dataset.pointStrokeColor,
fillColor : dataset.pointColor,
highlightFill : dataset.pointHighlightFill || dataset.pointColor,

View File

@ -121,6 +121,7 @@
datasetObject.points.push(new this.PointClass({
value : dataPoint,
label : data.labels[index],
datasetLabel: dataset.label,
x: (this.options.animation) ? this.scale.xCenter : pointPosition.x,
y: (this.options.animation) ? this.scale.yCenter : pointPosition.y,
strokeColor : dataset.pointStrokeColor,