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 171b2a4 commit 879efd5Copy full SHA for 879efd5
js/render-chartjs.js
@@ -122,11 +122,15 @@
122
settings.plugins.tooltip = {
123
callbacks: {
124
label: function(context) {
125
- var label = context.dataset.label || '';
+ var label = '';
126
+ if ( 'object' === typeof context.dataset.label ) {
127
+ label = context.label || '';
128
+ } else {
129
+ label = context.dataset.label || '';
130
+ }
131
if ( label ) {
132
label += ': ';
133
}
-
134
var format = context.dataset.format || '';
135
if ( format ) {
136
label += format_datum( context.formattedValue, format );
0 commit comments