react-echarts icon indicating copy to clipboard operation
react-echarts copied to clipboard

Please Help,How to customize the areaStyle

Open liangxp opened this issue 9 years ago • 1 comments

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

} }`

liangxp avatar Jan 11 '17 08:01 liangxp

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");

jcoleman-pcprofessional avatar Jan 22 '18 22:01 jcoleman-pcprofessional