Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
byteman opened this issue Dec 17, 2019 · 6 comments
Closed

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

byteman opened this issue Dec 17, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@byteman
Copy link

byteman commented Dec 17, 2019

image

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

@xuri xuri added the enhancement New feature or request label Dec 17, 2019
@byteman
Copy link
Author

byteman commented Dec 17, 2019

image

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

@byteman
Copy link
Author

byteman commented Dec 17, 2019

image

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

@xuri xuri changed the title 精确设置x轴刻度 [Feature request] Support to set major units of axis Dec 17, 2019
@byteman
Copy link
Author

byteman commented Dec 19, 2019

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

@xuri
Copy link
Member

xuri commented Dec 20, 2019

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

@byteman
Copy link
Author

byteman commented Dec 23, 2019

大神,有时间计划吗?

@xuri xuri closed this as completed in 5f3a4bc Dec 24, 2019
@xuri
Copy link
Member

xuri commented Dec 24, 2019

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

nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants