susiwen8 opened a new issue #10225: visualMap piecewise, when categories' items 
are the same, it won't mapping the correct color
URL: https://github.com/apache/incubator-echarts/issues/10225
 
 
   ### Version
   4.2.1
   
   ### Steps to reproduce
   Just set all items in visualMap's categories as same value, for example 
['a', 'a']. but inRange color are't, say ['blue', 'red']
   
   ### What is expected?
   The first 'a' should be blue and the second one should be red
   
   ### What is actually happening?
   Both 'a' are red
   
   ---
   Here is my option:
               var option = {
                   // backgroundColor: '#404a59',
   
                   legend: {},
                   grid: {},
                   tooltip: {},
                   xAxis: {
                       splitLine: {
                           show: false
                       }
                   },
                   yAxis: {
                       splitLine: {
                           show: false
                       }
                   },
                   : [{
                       left: 'right',
                       top: '10%',
                       type: 'piecewise',
                       dimension: 2,
                       categories: ['a', 'a'],
                       inRange: {
                           color: ['blue', 'red']
                       },
                       outOfRange: {
                           color: 'gray'
                       },
                   }, ],
                   series: [{
                       name: '北京',
                       type: 'scatter',
                       data: [
                           [0.78, 3.29, 'a'],
                           [1.05, 5.678, 'a'],
                       ]
                   }, ]
               };
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to