fxxjdedd opened a new issue #12230: Axis的类目轴的boundaryGap优化
URL: https://github.com/apache/incubator-echarts/issues/12230
 
 
   ### What problem does this feature solve?
   类目轴的boundaryGap只能为true/false,为true的时候会在两侧留出一定空白,但这个空白的宽度用户无法指定。
   
   ### What does the proposed API look like?
   希望能暴露一个配置来让用户指定这个空白的宽度。
   
   src/coord/Axis.js
   ```js
   function fixExtentWithBands(extent, nTick) {
       var size = extent[1] - extent[0];
       var len = nTick;
       var margin = size / len / 2;
       extent[0]  = margin;
       extent[1] -= margin;
   }
   ```
   
   即这里的margin可以让用户指定。
   
   <!-- This issue is generated by echarts-issue-helper. 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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to