echarts的series配置


series: [
  {
    name: name0,
    type: type0,
    smooth: false,
    yAxisIndex: 0,
    data: xdata,
    itemStyle: {
      normal: {
        color:'#1890FF',
        label: {
          color:'#000', //字的颜色
          borderColor: '#A618FF',  //拐点边框颜色
          // show: true  //设置这个就会把值显示在图表上
        },
        lineStyle:{
          color:'#A618FF'
        }
      }
    },
  },
  {
    name: name1,
    type: type1,
    smooth: true,
    yAxisIndex: 1,
    data: ydata,
    itemStyle: {
      normal: {
        label: {
          color:'#666',
          borderColor: '#1890FF',
        },
        lineStyle:{
          color:'#1890FF'
        }
      }
    },
  }
]

 

你可能感兴趣的:(理论,代码)