Remove decimals in bar chart y-axis

pull/384/head
Adrian Setyadi 2020-11-25 04:19:52 +07:00
parent d250f3c678
commit 20f3921549
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ export default function BarChart({
options.scales.xAxes[0].ticks.callback = renderXLabel;
options.scales.xAxes[0].ticks.fontColor = colors.text;
options.scales.yAxes[0].ticks.fontColor = colors.text;
options.scales.yAxes[0].ticks.precision = 0;
options.scales.yAxes[0].gridLines.color = colors.line;
options.scales.yAxes[0].gridLines.zeroLineColor = colors.zeroLine;
options.animation.duration = animationDuration;