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/03/21 10:33:39 UTC

[GitHub] [echarts] ZeekoZhu opened a new issue #16712: [Feature] add options to set the gap between `visualMap.text` and item

ZeekoZhu opened a new issue #16712:
URL: https://github.com/apache/echarts/issues/16712


   ### What problem does this feature solve?
   
   I want to increase the distance between the "text on the ends" and the visualMap items.
   
   ![image](https://user-images.githubusercontent.com/13861843/159237965-abf6bac4-7c92-4871-a1aa-9829c5127a0e.png)
   
   For now, [no existent function seems to directly control it](https://github.com/apache/echarts/issues/16706#issuecomment-1073684997)
   
   ### What does the proposed API look like?
   
   Add `textStyle` option to visualMap.
   ```
   textStyle: StyleObject | [StyleObject, StyleObject];
   ```
   
   * `textStyle: {...}`: set style of text on both ends
   * `textStyle: [{...}, {...}]`: set different style of text on each ends
   
   Once this feature is implemented, we can solve the above problem by easily:
   
   ```
   textStyle: { padding: [0, 42] }
   ```


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