You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/11/23 23:14:35 UTC

[GitHub] [incubator-echarts] dirslashls opened a new issue #13668: incorrect continous color mapping on maps if min and max is same

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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] pissang commented on issue #13668: incorrect continous color mapping on maps if min and max is same

Posted by GitBox <gi...@apache.org>.
pissang commented on issue #13668:
URL: https://github.com/apache/incubator-echarts/issues/13668#issuecomment-732748671


   I think the main issue here is only `Alabama` should be expected to have color. But instead, all regions have colors now when min, max is same.


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13668: incorrect continous color mapping on maps if min and max is same

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13668:
URL: https://github.com/apache/incubator-echarts/issues/13668#issuecomment-732480482


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] Ovilia commented on issue #13668: incorrect continous color mapping on maps if min and max is same

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #13668:
URL: https://github.com/apache/incubator-echarts/issues/13668#issuecomment-732639191


   I think in this case, the last color should be used instead of the center one, similar to [the case of degenerated CSS gradient](https://www.w3.org/TR/css-images-3/#degenerate-radials).
   
   > This will make the gradient look like a solid-color image equal to the color of the last color-stop, ...


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] Ovilia commented on issue #13668: incorrect continous color mapping on maps if min and max is same

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #13668:
URL: https://github.com/apache/incubator-echarts/issues/13668#issuecomment-733418132


   @pissang is right. I took the demo as piecewise visualMap by mistake.


----------------------------------------------------------------
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:
users@infra.apache.org



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