We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d9920 commit 79773b7Copy full SHA for 79773b7
docs/samples/other-charts/multi-series-pie.md
@@ -74,9 +74,9 @@ const config = {
74
},
75
tooltip: {
76
callbacks: {
77
- label: function(context) {
78
- const labelIndex = (context.datasetIndex * 2) + context.dataIndex;
79
- return context.chart.data.labels[labelIndex] + ': ' + context.formattedValue;
+ title: function(context) {
+ const labelIndex = (context[0].datasetIndex * 2) + context[0].dataIndex;
+ return context[0].chart.data.labels[labelIndex] + ': ' + context[0].formattedValue;
80
}
81
82
0 commit comments