echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open wangchao0724 opened this issue 10 months ago • 1 comments

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

wangchao0724 avatar Apr 29 '24 06:04 wangchao0724

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.

helgasoft avatar Apr 30 '24 20:04 helgasoft