react-echarts
react-echarts copied to clipboard
Please Help,How to customize the areaStyle
How to customize the areaStyle? like this: `areaStyle:{ normal: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: 'rgba(40, 182, 252, 0.85)'
}, {
offset: 1,
color: 'rgba(28, 159, 255, 0.2)'
}])
} }`
Late reply but here it is anyways.. To use the Linear Gradient from echarts you need to import the echarts module.
import * as echarts from 'echarts'; var echarts = require("echarts");