关于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'}
    ]
)

继续更新…

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理