opacityFrom: Number || Array of Numbers
Start color's opacity. If you want different opacity for different series, you can pass an array of numbers. For eg., opacityFrom: [0.2, 0.8]
colorStops: Array
Override everything and define your own stops with unlimited color stops.
[
[
{
offset: 0,
color: '#eee',
opacity: 1
},
{
offset: 0.6,
color: 'green',
opacity: 50
},
{
offset: 100,
color: 'red',
opacity: 1
}
],
[
{
offset: 0,
color: '#999',
opacity: 1
},
{
offset: 50,
color: 'blue',
opacity: 0.75
},
{
offset: 100,
color: '#ddd',
opacity: 1
}
]
]
Each index in the above code corresponds to a series.
Codepen Example