greydesolate commented on issue #20061:
URL: https://github.com/apache/echarts/issues/20061#issuecomment-2262170414
similar problem, i want to change series-gauge.detail. backgroundColor by
data.value .(<=30 red,30~70 blue ,above 70 green).` detail: {
formatter: '{value}%',
backgroundColor: function(data) {// not working
var value = data.value;
if (value <= 30) {
return 'red';
} else if (value <= 70) {
return 'blue';
} else {
return 'green';
}
},
color: '#fff',
padding: [5, 10],
borderRadius: 3
},`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]