【发布时间】:2021-10-11 07:25:35
【问题描述】:
【问题讨论】:
标签: angular typescript echarts apache-echarts
【问题讨论】:
标签: angular typescript echarts apache-echarts
areaStyle: {
color: new graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(255, 158, 68)'
},
{
offset: 1,
color: 'rgb(255, 70, 131)'
}])
}
Echart 有图形类,可以让你访问渐变属性。您可以根据需要对其进行微调,为数组中的颜色提供起点和终点。
【讨论】:
graphic?我以前试过这个。它给出了这个错误,Cannot find name 'graphic'
import { graphic } from 'echarts'。图形是从 echarts 本身实例化的。