Skip to content

ticks.callback first argument contains index instead of value with Chart.js 3 #8825

@ankane

Description

@ankane

Expected Behavior

The first argument contains the value (like in Chart.js 2 and the docs)

Current Behavior

The first argument contains the index (as well as the 2nd)

Steps to Reproduce

https://codepen.io/ankane/pen/jOywNez

I tried to see if the value was moved to a different argument, but didn't see it any of the other args.

Context

Ran into this trying to upgrade Chartkick to Chart.js 3

Environment

  • Chart.js version: 3.0.2
  • Browser name and version: Firefox 87.0

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