[echarts] 绘制动态折线图

在这里插入图片描述
利用Echarts中的动画属性animation;并使用animationDuration控制动画时间;

const optionFree = {
        xAxis: {
          data: this.xData
        },
        yAxis: {
          name: "人口(万)",
          min: "120000",
          max: "150000"
        },
        animation: true,
        animationDuration: 20000,
        series: [
          {
            data: this.populationData,
            type: "line",
            smooth: true,
            endLabel: {
              show: true
            }
          }
        ]
      };


vue+Echarts绘制动态折线图


版权声明:本文为qq_14993591原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。