Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histogram bins overflowing start of axis #2845

Open
2 tasks done
kevinschaich opened this issue Apr 1, 2024 · 0 comments
Open
2 tasks done

Histogram bins overflowing start of axis #2845

kevinschaich opened this issue Apr 1, 2024 · 0 comments
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@kevinschaich
Copy link

kevinschaich commented Apr 1, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Victory version

37.0.1

Code Sandbox link

No response

Bug report

The bins of my histogram are overflowing the left side of the x axis. I've tried every combination of padding and domainPadding but I can't get it to look right.

image

Steps to reproduce

 <VictoryChart
    height={200}
    containerComponent={
        <VictoryBrushContainer
            brushDimension='x'
            allowDrag
            allowDraw
            allowResize
        />
    }
>
    <VictoryHistogram
        domain={{ x: domain }}
        bins={20}
        binSpacing={1}
        data={df}
    />
    <VictoryAxis
        tickValues={tickValues}
    />
</VictoryChart>

Expected behavior

Left side of the first bin should align with the left side of the x axis

Actual behavior

Overflow axes

Environment

- Device: Desktop
- OS: Mac OS
@kevinschaich kevinschaich added the Type: Bug 🐛 Oh no! A bug or unintentional behavior label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

No branches or pull requests

1 participant