You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "mukiwu (via GitHub)" <gi...@apache.org> on 2023/02/13 06:12:08 UTC

[GitHub] [echarts] mukiwu opened a new issue, #18261: [Feature] axisLabel interval 的 return 能加上 'auto' 嗎

mukiwu opened a new issue, #18261:
URL: https://github.com/apache/echarts/issues/18261

   ### What problem does this feature solve?
   
   原本 interval 可以直接使用 `'auto'` 自動不重疊的顯示標籤
   但如果使用了 
   ```
   interval: function(index) {
   return true
   }
   ```
   
   返回值因為一定要是 `boolean type`,所以就不能用 `return 'auto'` 了
   
   因為需要使用函式寫一些判斷,所以希望能在 function 裡面加上 `return 'auto'`
   
   
   ### What does the proposed API look like?
   
   xAxis.axisLabel.interval
   
   (index:number, value: string) => boolean | 'auto'
   


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #18261: [Feature] axisLabel interval 的 return 能加上 'auto' 嗎

Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18261:
URL: https://github.com/apache/echarts/issues/18261#issuecomment-1427403617

   @mukiwu It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Feature] Can 'auto' be added to the return of axisLabel interval
   
   **BODY**
   
   ### What problem does this feature solve?
   
   The original interval can directly use `'auto'` to automatically display non-overlapping labels
   but if using
   ```
   interval: function(index) {
   return true
   }
   ```
   
   Since the return value must be `boolean type`, `return 'auto'` cannot be used
   
   Because you need to use the function to write some judgments, so I hope to add `return 'auto'` in the function
   
   
   ### What does the proposed API look like?
   
   xAxis.axisLabel.interval
   
   (index:number, value:string) => boolean | 'auto'
   </details>


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