Skip to content

armgit / umami

Public Imported from GitHub
0

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.

fix mindate logic

Francis Cao981a65565487
diff --git a/src/components/charts/BarChart.tsx b/src/components/charts/BarChart.tsx
index 7a8dcbed8..de7690468 100644
--- a/src/components/charts/BarChart.tsx
+++ b/src/components/charts/BarChart.tsx
@@ -36,7 +36,7 @@ export function BarChart(props: BarChartProps) {
x: {
type: XAxisType,
stacked: true,
- min: unit === 'minute' ? minDate : '',
+ min: unit === 'year' ? '' : minDate,
max: maxDate,
time: {
unit,