user2524001 commented on issue #20685:
URL: https://github.com/apache/echarts/issues/20685#issuecomment-2597831409

   let data = [[1,10],[2,10],[3,10],[4,10],[5,10],[6,999999999]]
     myChart.setOption(
       (option = {
         title: {
           text: 'Beijing AQI',
           left: '1%'
         },
         tooltip: {
           trigger: 'axis'
         },
         grid: {
           left: '5%',
           right: '15%',
           bottom: '10%',
           height: 50
         },
         xAxis: {
           data: data.map(function (item) {
             return item[0];
           }),
           show:false
         },
         yAxis: {},
         
         visualMap: {
           top: 50,
           right: 10,
           pieces: [
             {
               gt: 0,
               lte: 50,
               color: '#93CE07'
             },
             {
               gt: 50,
               lte: 100,
               color: '#FBDB0F'
             },
             {
               gt: 100,
               lte: 150,
               color: '#FC7D02'
             },
             {
               gt: 150,
               lte: 200,
               color: '#FD0100'
             },
             {
               gt: 200,
               lte: 300,
               color: '#AA069F'
             },
             {
               gt: 300,
               color: '#AC3B2A'
             }
           ],
           outOfRange: {
             color: '#999'
           }
         },
         series: {
           name: 'Beijing AQI',
           type: 'line',
           data: data.map(function (item) {
             return item[1];
           }),
           
         }
       })
     );
   
   
    比如这段代码,前五条数据应该展示为绿色,现在视觉上的确展示为红色了
   
   
![Image](https://github.com/user-attachments/assets/08b59ae9-076b-4016-9fb2-6d4ddf19a060)


-- 
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]

Reply via email to