fnlearner commented on issue #21295:
URL: https://github.com/apache/echarts/issues/21295#issuecomment-3430751199
可以尝试获取xAxis坐标轴的宽度除以数据的个数来获取两个区间的宽度来做曲线救国
```
const getBaseAxisRect = ( chart: EChartsType) => {
const model = (chart as any)?.getModel()?.getComponent?.('grid');
const coordinateSystem = model.coordinateSystem;
return coordinateSystem.getRect();
};
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]