What to do?
Thanks in advance.
CodePudding user response:
areaStyle: {
color: new graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: 'rgb(255, 158, 68)'
},
{
offset: 1,
color: 'rgb(255, 70, 131)'
}])
}
Echart has graphic class, which gives you access to the Gradient Property. You can fine tune it to your needs giving start and end points to the colors in array.