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 2021/04/12 04:53:57 UTC

[GitHub] [echarts] buhichan commented on issue #9284: How to use echarts visualMap to color Line depending on Y-Axis Value or category

buhichan commented on issue #9284:
URL: https://github.com/apache/echarts/issues/9284#issuecomment-817476744


   currently visualMap over Y-axis seems buggy to me, see https://codesandbox.io/s/dreamy-neumann-b8iz9?file=/src/App.js
   
   1. if use the pieces around lines#47, it throws error, I have to  hack it around by add lower bound and upper bound stops.
   2. Threshold value between stops have to depend on canvas size and line width, or else you will get a buggy "double color line". Try adjust the threshold range input in the example.
   
   I wish there exists a lower level API to draw different line segment based on individual data item, instead of the current linear gradient solution.


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