Skip to content

[BUG] <XAxis title="" /> doesn’t always work #119

@julians

Description

@julians

Describe the bug
When adding any x options to the <Plot />, an empty title prop on the <XAxis /> doesn’t empty the title.

To Reproduce

This still shows an automatically generated title for the x axis, which I explicitly did not want.

 <Plot marginBottom={80} y={{grid: true}} x={{insetLeft: 20}}>
    <AxisX title={''} tickFormat={(d) => `${d}%`} tickSize={0} />

Expected behavior
Should not show a title

Additional context

This fixes it

<Plot marginBottom={80} y={{grid: true}} x={{insetLeft: 20, label: false}}>
    <AxisX title={''} tickFormat={(d) => `${d}%`} tickSize={0} />

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions