You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "fnlearner (via GitHub)" <gi...@apache.org> on 2025/10/22 06:59:21 UTC

Re: [I] [Feature] 箱线图支持中位线上下不同填充颜色 [echarts]

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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org