echarts [Bug] Bar chart item overlap grid

x8goxv8g  于 5个月前  发布在  Echarts
关注(0)|答案(6)|浏览(143)

Version

latest

https://codepen.io/Sam-Yang-the-selector/pen/MWzbmYE

Steps to Reproduce

My case is bar chart with xAxis type is value, and the min value of xAxis is a value, option like image below

Current Behavior

chart item overlap

Expected Behavior

the first bar item need to display half width of it, because left part is overflow grid.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

r8xiu3jd

r8xiu3jd1#

This is the expected result since you set min: 110.

rmbxnbpk

rmbxnbpk2#

This is the expected result since you set min: 110.

Thanks for reply

Yes, the min data is 110, but do we have any way to hide the part of bar which overlap grid?

8yparm6h

8yparm6h3#

@Ovilia I agree with @ygs5933798 that this does not look good. We had user reports in Superset about the same problem. @ygs5933798 manually set 110 but this also happens when using dataMin and dataMax which are automatically calculated. Can we try to come up with an improved display? Maybe moving the ticks at both ends to accommodate the bars?

kmbjn2e3

kmbjn2e34#

@Ovilia Look how this is handled differently when comparing category and value even though both set min and max .

Type category with min and max defined:

Type value with min and max defined:

ykejflvf

ykejflvf5#

@Ovilia@villebro Can we prioritize a fix for this problem in ECharts 6.0? It is easily reproducible in Superset apache/superset#26254

vngu2lb8

vngu2lb86#

Can we prioritize a fix for this problem in ECharts 6.0? It is easily reproducible in Superset apache/superset#26254

@michael-s-molina would you be able to convey this to the Dev list discussion ? I will see if I can contribute to 6.0 efforts, and this could be a good one to start with, as it seems to not only affect Superset, but the community in general.

相关问题