Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Remove decimals in bar chart y-axis
Adrian Setyadi20f39215496d
diff --git a/components/metrics/BarChart.js b/components/metrics/BarChart.jsindex f42cf73f6..4354f18c6 100644--- a/components/metrics/BarChart.js+++ b/components/metrics/BarChart.js@@ -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;