mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 10:46:16 +01:00
change twoDecimalString to use customizable digits
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
cn,
|
||||
formatShortDate,
|
||||
toFixedWithoutTrailingZeros,
|
||||
twoDecimalString,
|
||||
decimalString,
|
||||
chartMargin,
|
||||
} from '@/lib/utils'
|
||||
// import Spinner from '../spinner'
|
||||
@@ -103,7 +103,7 @@ export default function AreaChartDefault({
|
||||
content={
|
||||
<ChartTooltipContent
|
||||
labelFormatter={(_, data) => formatShortDate(data[0].payload.created)}
|
||||
contentFormatter={(item) => twoDecimalString(item.value) + unit}
|
||||
contentFormatter={(item) => decimalString(item.value) + unit}
|
||||
indicator="line"
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user