mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Fixed bar chart rendering.
This commit is contained in:
parent
96fcdefeed
commit
3a737e7e25
5 changed files with 47 additions and 15 deletions
|
|
@ -5,7 +5,7 @@ import { Chart, ChartProps } from '@/components/charts/Chart';
|
|||
import { useLocale } from '@/components/hooks';
|
||||
import { renderNumberLabels } from '@/lib/charts';
|
||||
import { getThemeColors } from '@/lib/colors';
|
||||
import { formatDate } from '@/lib/date';
|
||||
import { formatDate, formatDateByUnit } from '@/lib/date';
|
||||
import { formatLongCurrency, formatLongNumber } from '@/lib/format';
|
||||
|
||||
const dateFormats = {
|
||||
|
|
@ -57,8 +57,9 @@ export function BarChart({
|
|||
x: {
|
||||
type: XAxisType,
|
||||
stacked: true,
|
||||
min: minDate,
|
||||
max: maxDate,
|
||||
min: formatDateByUnit(minDate, unit),
|
||||
max: formatDateByUnit(maxDate, unit),
|
||||
offset: true,
|
||||
time: {
|
||||
unit,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue