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

[question] 折线图的起始位置如何做偏移 #19877

Closed
wangchao0724 opened this issue Apr 29, 2024 · 1 comment
Closed

[question] 折线图的起始位置如何做偏移 #19877

wangchao0724 opened this issue Apr 29, 2024 · 1 comment
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@wangchao0724
Copy link

Version

5.5

Link to Minimal Reproduction

none

Steps to Reproduce

https://codesandbox.io/p/sandbox/basic-area-chart-qstf3z?file=%2Findex.js

Current Behavior

X轴的起点和终点不能设置偏移,boundaryGap 选项不能满足我的需求

Expected Behavior

X轴的起始坐标可以设置偏移,从偏移位置开始显示坐标轴, 并且不影响坐标轴间隔 image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Apr 29, 2024
@helgasoft
Copy link

The starting point and end point of the X-axis cannot be offset.

That is due to xAxis being type 'category'. Try xAxis with type:'time' and min and max values.

@plainheart plainheart removed the en This issue is in English label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

3 participants