echarts y-axis data is too long processing

formatter: function (value, index) {
                            if (value >= 10000 && value < 10000000) {
                                value = value / 10000 + "万";
                            } else if (value >= 10000000) {
                                value = value / 10000000 + "千万";
                            }
                            return value;
                        }

 

Guess you like

Origin blog.csdn.net/weixin_38959210/article/details/106235139