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 2022/01/09 22:28:58 UTC

[GitHub] [echarts] CaelumNigre edited a comment on issue #16313: [Bug] visualMap.outOfRange is ignored if visualMap.range[1] (max) is set to 200 or more

CaelumNigre edited a comment on issue #16313:
URL: https://github.com/apache/echarts/issues/16313#issuecomment-1008436025


   Works as intended. 
   The "out of range" color is assigned to values that are outside of "range" option, but within the "min-max" range. By default "min" is 0 and "max" is 200 (see API docs for defaults). In your example, you don't set the "min" and "max" values so they have defaults of 0 and 200. Hence, setting the value of the range option below 0 or above 200 has no effect. When using visualmap you should set first min and max to minimal and maximum values possible in data set and then use range to visualize "expected range". The range option is just a position of "sliders" on the min-max scale, so it does not make sense outside of min-max range. 
   For example if "normal" values are in range 50-100 and "possible" values are in range "0-200" and you would like to highlight abnormally low or high values with different color, you should set min to 0, max to 200 and range to [50,100].  


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

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