Skip to content

Bar chart: draw the outline, even if the height is zero. #3797

@RichardNeill

Description

@RichardNeill

For a bar of zero height, if the line width is specified, we should be able to see the bar border, even though we don't see the bar.

In this example:
https://codepen.io/RichardNeill/pen/EJRqmN

B is a normal bar, with 10px border, as it should be.
C is a bar with height = null. It is, correctly, completely invisible.

But A is a bar with height = 0. It should actually appear as a 20px high rectangle (the border should still be displayed), even though the bar area itself isn't. Try setting the value to 0.0001
and you'll see what I expect. In addition, the hover tooltip is (wrongly) suppressed - it doesn't appear in "show closest data on hover" mode.

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions