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/07/13 06:40:07 UTC

[GitHub] [echarts] halo951 opened a new issue, #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.

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

   ### Version
   
   e.g. 5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1. axiosLabel 配置项文档描述中, 包含 `overflow` 配置项, 但是在最新的 e.g. 5.3.3 版本中, 声明文件缺少 `overflow` 配置项. 
   2. 测试发现, 可能功能被移除. 希望官方大大确认.
   
   doc link: https://echarts.apache.org/zh/option.html#xAxis.axisLabel.overflow
   interface:
   ```
   interface AxisLabelBaseOption extends Omit<TextCommonOption, 'color'> {
       show?: boolean;
       inside?: boolean;
       rotate?: number;
       showMinLabel?: boolean;
       showMaxLabel?: boolean;
       margin?: number;
       rich?: Dictionary<TextCommonOption>;
       /**
        * If hide overlapping labels.
        */
       hideOverlap?: boolean;
       color?: ColorString | ((value?: string | number, index?: number) => ColorString);
   }
   ```
   
   
   ### Current Behavior
   
   因为缺少 overflow, 导致x轴 axisLabel 无法配置自动裁剪超长字符串.
   
   ### Expected Behavior
   
   1. 如果这个功能被移除, 请更新文档.
   2. 如果这个功能是保留的, 请检查是否需要修复这个问题.
   
   ### Environment
   
   ```markdown
   - OS: Window 10
   - Browser: Chrome/103.0.0.0
   - Framework: Vue@2.x
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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] breizh24 commented on issue #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.

Posted by GitBox <gi...@apache.org>.
breizh24 commented on issue #17363:
URL: https://github.com/apache/echarts/issues/17363#issuecomment-1286794084

   I can confirm that this is a bug with the interface assigned to `xAxis.axisLabel` and I have opened a PR that is going to fix the bug
   https://github.com/apache/echarts/pull/17808


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


[GitHub] [echarts] jiawulin001 commented on issue #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #17363:
URL: https://github.com/apache/echarts/issues/17363#issuecomment-1184353626

   Hi, as is tested, `xAxis.axisLabel.overflow` is functioning well. Please post your code where you think `overflow` is not working.


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


[GitHub] [echarts] Ovilia closed issue #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.
URL: https://github.com/apache/echarts/issues/17363


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


[GitHub] [echarts] echarts-bot[bot] commented on issue #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #17363:
URL: https://github.com/apache/echarts/issues/17363#issuecomment-1182826686

   @halo951 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**
   
   [Bug] echarts xAxis.axisLabel configuration, missing overflow property described in official documentation.
   
   **BODY**
   
   ### Version
   
   e.g. 5.3.3
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   1. In the description of the axiosLabel configuration item document, the `overflow` configuration item is included, but in the latest e.g. 5.3.3 version, the declaration file lacks the `overflow` configuration item.
   2. The test found that the function may be removed. I hope the official will confirm it greatly.
   
   doc link: https://echarts.apache.org/en/option.html#xAxis.axisLabel.overflow
   interface:
   ````
   interface AxisLabelBaseOption extends Omit<TextCommonOption, 'color'> {
       show?: boolean;
       inside?: boolean;
       rotate?: number;
       showMinLabel?: boolean;
       showMaxLabel?: boolean;
       margin?: number;
       rich?: Dictionary<TextCommonOption>;
       /**
        * If hide overlapping labels.
        */
       hideOverlap?: boolean;
       color?: ColorString | ((value?: string | number, index?: number) => ColorString);
   }
   ````
   
   
   ### Current Behavior
   
   Due to the lack of overflow, the x-axis axisLabel cannot configure automatic clipping of super-long strings.
   
   ### Expected Behavior
   
   1. If this feature is removed, please update the documentation.
   2. If this function is reserved, please check if this problem needs to be fixed.
   
   ### Environment
   
   ````markdown
   - OS: Windows 10
   - Browser: Chrome/103.0.0.0
   - Framework: Vue@2.x
   ````
   
   
   ### Any additional comments?
   
   _No response_
   </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


[GitHub] [echarts] TendernessCJS commented on issue #17363: [Bug] echarts xAxis.axisLabel 配置, 缺少官方文档描述的 overflow 属性.

Posted by GitBox <gi...@apache.org>.
TendernessCJS commented on issue #17363:
URL: https://github.com/apache/echarts/issues/17363#issuecomment-1273947680

   > 
   
   `xAxis.axisLabel.overflow` is functioning well but
   
   <img width="1275" alt="image" src="https://user-images.githubusercontent.com/50892641/194973095-6cbde8d0-04d9-4e45-96af-b756eaa4c619.png">
   
   
   


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