wujingjing
2024-08-09 f1c54fca586a4d30e046b2a7ce4a18e02c3fe17e
1
2
3
4
5
6
7
8
9
10
11
12
export const axisLabelFormatter = (value, index) => {
    if (value >= 1000000) {
        return value / 1000000 + 'M';
    }
    if (value >= 10000) {
        return value / 10000 + 'W';
    }
    if (value >= 1000) {
        return value / 1000 + 'K';
    }
    return value + '';
};