echarts折线图常用属性设置

 源码

option = {
    tooltip: {//设置提示
        trigger: 'axis',
            axisPointer: {
            type: 'cross',
            label: {
                backgroundColor: '#6a7985'
            }
        }
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        splitLine: { show: true }, //去除网格线
        data: ['12.1', '12.2', '12.3', '12.4', '12.5', '12.6', '12.7']
    },
    yAxis: {
        type: 'value',
        name: "单位:万元",
        splitLine: { show: true }, //去除网格线
    },
    series: [{
        data: [10, 40, 30, 90, 50, 60, 70],
        name:'总交易额',
    // symbol: "none",//去除小圆点
        type: "line",
        smooth: true,
            itemStyle:{
                normal:{
                    lineStyle:{
                        color:'#C1CEF5'//阴影颜色
                    }
                }
            },
            areaStyle: {
                normal:{
                    color:'#C1CEF5'//曲线颜色
                }
            }
          }
      ],
      grid: {
          left: '3%',
          right: '4%',
          bottom: '3%',
          containLabel: true,
      },
};

 

posted @ 2020-12-28 11:43  JackieDYH  阅读(26)  评论(0编辑  收藏  举报  来源