mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-06 16:26:52 +01:00
Update docs + remove unused config option since we don't need 2 different callbacks.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user