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.
2 parents 407e31c + 3719653 commit 8b0f15bCopy full SHA for 8b0f15b
src/components/ChartContainer.jsx
@@ -314,13 +314,19 @@ export default function ChartContainer({
314
title: { display: true, text: 'Step' },
315
min: xRange.min,
316
max: xRange.max,
317
- bounds: 'data'
+ bounds: 'data',
318
+ ticks: {
319
+ callback: function (value) {
320
+ return Math.round(value);
321
+ }
322
323
},
324
y: {
325
type: 'linear',
326
display: true,
327
title: { display: true, text: 'Value' },
328
bounds: 'data',
329
+ grace: '20%',
330
ticks: {
331
callback: function (value) {
332
return Number(value.toPrecision(2));
0 commit comments