Skip to content

[charts] Bar charts with log scale axis do not render #17170

@jhamilton-ot

Description

@jhamilton-ot

Steps to reproduce

Steps:

  1. Open this link to live example: codesandbox

Current behavior

Bar charts with log scale axis do not render. There are errors in the console: Got NaN while animating: and `NaN` is an invalid value for the `height` css style property. The exact same code works using scaleType: "linear" or scaleType: "sqrt"

Expected behavior

Chart should render with a logarithmic scale.

Context

Render a bar chart with a log scale.

Your environment

Chrome Version 134.0.6998.35

Search keywords: barchart log scale

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: chartsChanges related to the charts.staleInactive for 7 days (issues) or 30 days (PRs); closed after 5 or 15 more days if no update.status: waiting for authorIssue with insufficient information.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions