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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy