You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "greydesolate (via GitHub)" <gi...@apache.org> on 2024/08/01 06:40:59 UTC

Re: [I] [Bug] When the progress of gauge is displayed, the property "detail.color" behaves abnormally [echarts]

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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org