vue中使用echarts改变Y轴数值

重要的是这一句 :

在setOption里面加上


        yAxis: {

          type: "value",

          name: "销量",

          min: 0,

          //总数

          max: 3000,

          //间隔数量

          interval: 500,

          axisLabel: {

            formatter: "{value}千克",

          },

          //   splitLine: { show: true }, //去除网格线

          splitArea: { show: true }, //保留网格区域

          splitLine: {

            show: true,

            lineStyle: {

              //使用深浅的间隔色

              color: ["red"], //设置颜色

            },

          },

        },

完整代码  Hello.vue

你可能感兴趣的:(vue中使用echarts改变Y轴数值)