move back 😏
This commit is contained in:
11
apps/dashboard/src/components/report/chart/chart-utils.ts
Normal file
11
apps/dashboard/src/components/report/chart/chart-utils.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
const formatter = new Intl.NumberFormat('en', {
|
||||
notation: 'compact',
|
||||
});
|
||||
|
||||
export function getYAxisWidth(value: number) {
|
||||
if (!isFinite(value)) {
|
||||
return 7.8 + 7.8;
|
||||
}
|
||||
|
||||
return formatter.format(value).toString().length * 7.8 + 7.8;
|
||||
}
|
||||
Reference in New Issue
Block a user