Pie Chart v2 and colours based on value


I need to show different colors in pie chart v2 based on value. Now pie chart shows different colour based on device and not value. Let’s say that if value is 0 then colour is green and if it’s 1 then colour is yellow and if it’s 3 then colour is red. As you can see in the picture in this example I try to use Zabbix api and ping status.

Thank you for you help.