乐趣区

关于echarts:echarts常见配置

x 轴、y 轴 label 自定义

yAxis: {axisLabel: { textStyle: { color: '#fff' ,fontFamily: 'TencentSans',fontSize:'18px'} }
}

图标柱状、折线款式

series: [{data:[],
    lineStyle: {color: '#5470C6', width: 1, type: 'dashed'},
}]

渐变色

import * as echarts from 'echarts/core';
new echarts.graphic.LinearGradient(
    0, 0, 0, 1,
    [{offset: 0, color: '#03F5FF'},
      {offset: 1, color: '#00A2FF'}
    ]
)

继续更新 …

退出移动版