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

Skip to content

Text missing if axis range is reversed and cliponaxis=false #2531

Closed
@darabos

Description

@darabos

I have a pull request (darabos#1) for it, but I made it against my own repo now to follow the contribution guidelines.

I committed the "before" baseline to demonstrate the issue. You can see the fix in the second commit's diff:
cliponaxis-before-after

This example is a bit unusual. Who uses upside-down bar charts?! In real life I hit this issue with a horizontal bar chart where I wanted the order of the groups in the chart to match the order in the legend:
horizontal-bar-chart

I set autorange: 'reverse' and the texts disappeared:
bars-reversed

If I remove cliponaxis: false, the texts are clipped:
bars-clipped

I'm open to suggestions, but my PR is aimed at fixing the version with the missing texts. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions