echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Y-axis overflow

Open jydeng opened this issue 3 years ago • 7 comments

Version

5.2.2

Link to Minimal Reproduction

https://codesandbox.io/s/ori8mm?file=/index.js

Steps to Reproduce

1、set Y-Axis "type" = 'time' 2、set Y-Axis "inverse" = true

Current Behavior

1、set Y-Axis "type" = 'time' 2、set Y-Axis "inverse" = true 3、you will find the chart y-axis overflow image

Expected Behavior

I hope the height can be displayed normally,think you.

Environment

- OS: 
- Browser:
- Framework:

Any additional comments?

No response

jydeng avatar May 05 '22 07:05 jydeng

This is not a bug. By design, bars with some part inside the grid area is not clipped.

Ovilia avatar May 07 '22 06:05 Ovilia

@Ovilia I'm confused - how is this not a bug?

It feels like bars aren't meant to overlap axes, or even appear fully outside of an axis, like this:

image

This is a really buggy feeling non-bug 🤔 do you have any suggestions for how we can stop these bar charts from overflowing the axes?

TuringLovesDeathMetal avatar Aug 24 '22 14:08 TuringLovesDeathMetal

I was also able to replicate this bug on echart examples, by simply changing an area chart example into bars I hope it helps.

image

here is the link

This is the original chart

rephus avatar Aug 30 '22 10:08 rephus

@Ovilia do you have any updates on this? It is definitely still a bug!

hamzahc1 avatar Dec 08 '23 09:12 hamzahc1

@Ovilia just to follow on to the Lightdash guys, unsure about how you can say that this is not a bug and is by design:

image

thomas-gamurs avatar Dec 10 '23 23:12 thomas-gamurs

the issue only exists for axis type=time and inverse=true so it's hard to find an example that is more minimal. all examples with type=category are fine if inverted.

oberhamsi avatar Dec 02 '24 10:12 oberhamsi

This issue was mentioned by a user in slack: https://lightdash.slack.com/archives/C053ESBT36V/p1701777351521729?thread_ts=1701777351.521729&cid=C053ESBT36V

lightdash-bot avatar Nov 20 '25 08:11 lightdash-bot