Skip to content

Logarithmic axes migration V4 #11215

@JHHattingh

Description

@JHHattingh

Expected behavior

Migrating from Chart.js V3 to Chart.js 4 should not change the gridline/tick spacing/selection behavior. I did not see anything in migration guide related to logarithmic charts.

Current behavior

The gridlines/Ticks created by Chart.js 4 is different from V3. Chart.js V3 has a more logical gridline/Ticks selection/Spacing.

Reproducible sample

https://codepen.io/JHHattingh/pen/GRXaZxo

Optional extra steps/info to reproduce

V4
https://codepen.io/JHHattingh/pen/GRXaZxo
V3
https://codepen.io/JHHattingh/pen/eYLaZXP

Possible solution

Is there any way migrate my logarithmic chart to V4. Do I misunderstand the options for Logarithmic axis?

Context

Migration from Chart.js V3 to Chart.js V4

chart.js version

4.2.1

Browser name and version

N/A

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions