echarts
echarts copied to clipboard
[question] 折线图的起始位置如何做偏移
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轴的起始坐标可以设置偏移,从偏移位置开始显示坐标轴, 并且不影响坐标轴间隔
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
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.