Skip to content

Drawing order for mixed chart is not behaving as documented. #6888

Description

@ck-gith

Why is it named drawing order when the legend order are also reordered when I use order property? (which is the same as changing the order for the dataset array)

Expected Behavior

https://www.chartjs.org/docs/latest/charts/mixed.html#drawing-order
when i have 2 dataset with order =1 and order =2 , order 1 should be drawn below and order=2 should be on top

Current Behavior

order 1 is on top while order 2 is below.

Steps to Reproduce (for bugs)

https://codepen.io/kurkle/pen/povdejq?editors=1010

Context

Environment

  • Chart.js version: master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions