Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug in calculating if label fits inside bar for XYBarRenderer #366

@Yuri-Blankenstein-TNO

Description

@Yuri-Blankenstein-TNO

In the XYBar renderer its is checked if the label fits the inside of a bar to decide if it needs to be truncated or even not shown at all, see XYBarRenderer#calculateLabeltoDraw(...).
This method used the RectangularShape#contains(Rectangle2D) method, but this method takes the x,y offset into account which is not valid as only the dimensions of the rectangle should be considered.

This leads to strange effects like labels be positioned on their fallback locations or not shown at all.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions