Skip to content

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

@halo951

Description

@halo951

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

- OS: Window 10
- Browser: Chrome/103.0.0.0
- Framework: Vue@2.x

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions