dirslashls opened a new issue #13668:
URL: https://github.com/apache/incubator-echarts/issues/13668


   ### Version
   5.0.0
   
   ### Steps to reproduce
   Navigate to https://echarts.apache.org/examples/en/editor.html?c=map-usa
   
   Change the visualMap and data options to the following and leave the rest as 
is.
   
   1) visualMap options
   ```
          visualMap: {
               left: 'right',
               min: 4822023,
               max: 4822023,
               inRange: {
                   color: ['#313695', '#4575b4', '#74add1', '#abd9e9', 
'#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
               },
               text: ['High', 'Low'],           // 文本,默认为数值文本
               calculable: true
           },
   ```
   
   2) series data options
   
   ```
                   data:[
                       {name: 'Alabama', value: 4822023},
                   ]
   ```
   
   ### What is expected?
   Expect to see only the single state with data to have the color.
   
   ### What is actually happening?
   Entire map has the same color including the state with the data.
   
   ---
   If I set the min and max to be different values, the coloring works fine. 
However,  in my case the min/max are automatically calculated based on the data 
and if there is data for a single state, this happens.
   
   <!-- 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:
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