Skip to content

[Feature request] Support to set major units of axis #538

@byteman

Description

@byteman

image

x轴的刻度能设置一个参数吗?比如50个点显示一个数字, 0,50,100,而不是现在这种自动的值

Activity

byteman

byteman commented on Dec 17, 2019

@byteman
Author

image

还有就是x轴本来是1-1000,结果这里只能显示到981,需要拉长后才能显示出来

byteman

byteman commented on Dec 17, 2019

@byteman
Author

image

我找到了再这里可以设置间隔单位,我这里设置的100为间隔。怎么在go库总添加这个功能啦?求救大神啊,帮忙指导一下啊,被客户天天吹

changed the title [-]精确设置x轴刻度[/-] [+][Feature request] Support to set major units of axis[/+] on Dec 17, 2019
byteman

byteman commented on Dec 19, 2019

@byteman
Author

大神,有什么思路可以提供一下吗?

xuri

xuri commented on Dec 20, 2019

@xuri
Member

Thanks for your issue. I'll add tick labels support apply in the function drawPlotAreaCatAx recently.

byteman

byteman commented on Dec 23, 2019

@byteman
Author

大神,有时间计划吗?

xuri

xuri commented on Dec 24, 2019

@xuri
Member

Hi @byteman, I have added setting a major unit and tick label skip support for the chart. You can specify tick label skip property by tick_label_skip field in x_axis like this:

{"x_axis": {"tick_label_skip": 100}}
added a commit that references this issue on Oct 23, 2020
7d7a397
added a commit that references this issue on Mar 14, 2024
5f3a4bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @byteman@xuri

        Issue actions

          [Feature request] Support to set major units of axis · Issue #538 · qax-os/excelize