Hi Team, I am using Apache Echarts- Pie chart to represent services (running, stopped) in the dashboard.
It is working correctly when the data comes in the same order (running, stopped). But, When all services are stopped, from the backend I would get only stopped details in response. Issue: Color order I have given as running -green and stopped -red. When data comes in order i,e (both running and stopped services) it works fine. When we get only stopped services details, Pie chart shows the green color for stopped services instead of red. Is there a way to do the condition based color coding, so that issue can be resolved. Attached implementation and pie chart screenshot. Kindly advise.
Regards, Sachin B R
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org