echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Feature] specify border on each side

Open felix-fuin opened this issue 6 months ago • 3 comments

What problem does this feature solve?

Hi,

Related to this ticket, it could be great to specify the border width on each side, for example on a bar chart, in order to realize design like this with a top border:

Image

Thanks

What does the proposed API look like?

Something like this should be great:

itemStyle: { borderWidth: [1, 0, 0, 0] }

felix-fuin avatar Jun 12 '25 19:06 felix-fuin

An easy way to do this is to create a stacked bar with silent: true.

Ovilia avatar Jun 13 '25 02:06 Ovilia

Here's a demo

Ovilia avatar Jun 13 '25 02:06 Ovilia

Thanks for this workaround, it works great!

felix-fuin avatar Jun 13 '25 10:06 felix-fuin