Apex Chart color the datalabels based on value


How can I simply change the color of each data labels in Apex Chart based on value? I am looking for something like mentioned here change color of single dataLabel in ApexCharts - Stack Overflow

Below I played around with the datalabels in options, however it is only possible to change the color of whole line not one.

you might check the docs for custom function; this will be a javascript function that you pass directly in the value