I have the following gradient effect line chart.
https://jsfiddle.net/e7Ly41wm/2/
plotOptions: {
area: {
fillColor: {
linearGradient: {
x1: 0,
y1: 0,
x2: 0,
y2: 1
},
stops: [
[0, Highcharts.getOptions().colors[0]],
[1, Highcharts.color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
]
},
marker: {
radius: 2
},
lineWidth: 1,
states: {
hover: {
lineWidth: 1
}
},
threshold: null
}
}
For positive values, I want to stop the gradient effect at 0.
For negative values, I want to have the gradient effect towards the 0 (reverse) and stop at 0.
It will be similar like but with gradient effect.
I can change chart type to area chart if required.
What changes do I need to achieve this?