Skip to content

Move x axis to the bottom #2

Description

@jackdbd

Probably this will sound as a really dumb question, but how do I move the x axis to the bottom of a chart?

I tried to use style={{ orient: BOTTOM }}, but that affects only the ticks, not the <g> element of the axis.

<Axis {...axisPropsFromBandedScale(widthScale)} style={{ orient: BOTTOM }} />

Are there any props I can pass to translate the <g> element?

By the way, cool library, I was looking for a way to avoid using refs for d3 axes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions