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