Skip to content

Deprecation warnings on all horizontal bar charts with Chart.js 2.9.0 #6602

Description

@ankane

Expected Behavior

No deprecation warnings when not using deprecated options.

Current Behavior

Two deprecation warnings for all horizontal bar charts

bar chart: "scales.[x/y]Axes.barPercentage" is deprecated. Please use "dataset.barPercentage" instead

and

bar chart: "scales.[x/y]Axes.categoryPercentage" is deprecated. Please use "dataset.categoryPercentage" instead

Steps to Reproduce (for bugs)

Change type to horizontalBar in the default codepen: https://codepen.io/ankane/pen/XWWgKZy

Environment

  • Chart.js version: Chart.js 2.9.0
  • Browser name and version: Chrome 78

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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