-
HI, I need to use 5 decimals in a graph but its just appears 3(truncated) and the interpolation it's calculated with 3 decimal and the graph its just look weird. That's just happened when put it in y axis, because in x axis it's works |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
For tooltip, you can customize the label with callbacks: const formatter = new Intl.NumberFormat('en-US', {minimumFractionDigits: 5});
const myChart9 = new Chart(ctx9, {
type: 'line',
data: data,
options: {
plugins: {
tooltip: {
callbacks: {
label: (item) => item.dataset.label + ': ' + formatter.format(item.parsed.y),
}
}
}
}
}); |
Beta Was this translation helpful? Give feedback.
-
Great but I solve the shape setting |
Beta Was this translation helpful? Give feedback.
For tooltip, you can customize the label with callbacks: