Fnxxxxo commented on issue #19684:
URL: https://github.com/apache/echarts/issues/19684#issuecomment-1987762771

   @helgasoft ,I make some changes to the example: 
   ```
       yAxis: {
         type: 'category',
         inverse: true,
         max: 10,
         axisLabel: {
           show: true,
           fontSize: 14,
           formatter: function (value, idx, sortIdx) {
             const flag = sortIdx === 0 ? 'first' : sortIdx === 1 ? 'second' : 
'normal';
             return '{' + flag  + '|' + value + '}' + '{flag|' + getFlag(value) 
+ '}';
           },
           rich: {
             first: {
               color: '#ffd700'
             },
             second: {
               color: 'c0c0c0',
             },
             normal: {},
             flag: {
               fontSize: 25,
               padding: 5
             }
           }
         },
         animationDuration: 300,
         animationDurationUpdate: 300
       },
   ```
   This always set specific color for the first and the second. 


-- 
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-unsubscr...@echarts.apache.org

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


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

Reply via email to