Update docs + remove unused config option since we don't need 2 different callbacks.

This commit is contained in:
Evert Timberg
2015-12-07 21:52:15 -05:00
parent 60920cd75a
commit a2e1a97382
4 changed files with 7 additions and 7 deletions

View File

@@ -27,10 +27,6 @@
fontColor: "#666",
fontFamily: "Helvetica Neue",
padding: 10,
callback: function(dataset) {
return '' + dataset.label;
},
// Generates labels shown in the legend
// Valid properties to return:
// text : text to display
@@ -45,7 +41,7 @@
generateLabels: function(data) {
return data.datasets.map(function(dataset, i) {
return {
text: this.options.labels.callback.call(this, dataset),
text: dataset.label,
fillStyle: dataset.backgroundColor,
hidden: dataset.hidden,
lineCap: dataset.borderCapStyle,