P粉2037924682023-08-09 09:59:08
If you want to adjust the colors based on the data from the third column, using areas won't work here because they are based on the axes, which are generated based on the values from the second column.
So, if you want to change the color of a specific point in the second column based on a custom value in the third column, you can use the chart.events.load() callback function, and use point.update() Method conditionally updates the color of all points.
chart: { events: { load: function() { const chart = this; chart.series.forEach(series => { series.data.forEach(point => { if (point.pts < 43) { point.update({ color: 'red' }) } }) }) } } }
Demo: https://jsfiddle.net/BlackLabel/ydc3m45n/
API: https://api.highcharts .com/highcharts/chart.events.load
https://api.highcharts.com/class-reference/Highcharts.Point#update