echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] get bar gap in renderItem,

Open littlegolden opened this issue 1 year ago • 0 comments

What problem does this feature solve?

to implement this style, use renderItem to get points for each stacked series, the point from api.coord([xValue, yIndex]) is the center of the bar item, to move it to the bottom of the bar item, division the barLayout[i].bandWidth by 2 and minus with y point value, but result is not at the bottom of bar item, but the center of the gap, seems that the bandWidth contains the gap, how to minus the gap height?

image

see example

example

littlegolden avatar Dec 27 '24 08:12 littlegolden