Skip to content

Commit 2a82dee

Browse files
committed
chartEvolution : locale format axis
1 parent 9b0dc18 commit 2a82dee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Charts/ChartEvolution.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ option:custom_option={}}:ChartEvolutionProps) => {
122122
label:{formatter: yearMode ? (p) => String(new Date(p.value).getUTCFullYear()) ?? `` : undefined }},
123123
valueFormatter: (v) => `${v?.toLocaleString(undefined, {maximumFractionDigits:0})} ${unit ?? ''}`
124124
},
125-
yAxis: {show: true, type: 'value' },
125+
yAxis: {show: true, type: 'value', axisLabel:{formatter: (v:any) => `${(v).toLocaleString()} ${unit || ''}` } },
126126
xAxis: {show: true, type: 'time' },
127127
series: series ,
128128
}

0 commit comments

Comments
 (0)