Here I am experimenting with gradient colors at the top of the chart area by reversing the y-Axis. You can see the effect in the image below.
yAxis: {
reversed: true,
showFirstLabel: false,
showLastLabel: true
}
https://i.sstatic.net/SkLo5.jpg
However, I don't want to reverse the y-Axis because it also reverses my entire chart. I'm looking for a way to achieve the gradient color effect at the top of the chart line without having to reverse the y-Axis. Please suggest any alternative options available in Highcharts.
If you have any suggestions or solutions, I would greatly appreciate your help.
https://i.sstatic.net/hBMzh.jpg
I am currently working with live random data and only want the area traveled by the data to have the gradient color. Any empty space other than the data on the chart should not have the gradient color applied.
Based on @DaMaxContent's answer, the desired output is shown in the image below:
https://i.sstatic.net/rVhGr.jpg
I do not want the gradient color filling areas outside of the actual chart data. Can anyone provide guidance on how to resolve this issue?