Replies: 1 comment
-
You are missing the scales configuration change. We don't have plugins: {
tooltip: {
callbacks: {
label(ctx) {
const scale = ctx.chart.scales.y;
return scale.options.ticks.callback.apply(scale, [ctx.parsed.y, 0, []]);
}
}
}, Off topic: Linear scale formats its "label" using options.locale |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have a chart:
This formats the value of the y axis label, however doesn't affect the
context.formattedValue
value specified in aChart.defaults.plugins.tooltip.callbacks.label
callback. Previously I usedthis._chart.options.scales.yAxes[x].ticks.callback
to access it from the callback. However, this callback doesn't seem to be available in the label callback anymore. Am I missing something? Thanks so much for your hard work on this library!Beta Was this translation helpful? Give feedback.
All reactions