Skip to content

Line chart dataset order is wrong #2719

@dmig

Description

@dmig

This fiddle shows the problem: https://jsfiddle.net/dmig/97pxd7eL/4/

When I specify datasets, I expect them to be drawn in that order:

  datasets: [
    {
        label: "Blue", 
      fill: true, 
      backgroundColor: "rgba(32, 162, 219, 1)",
      data: dataPack1,
    },
    {
        label: "Red",
      fill: true,
      backgroundColor: "rgba(196, 93, 105, 1)",
      data: dataPack2,
    },
    ]

Workaround is to reverse their order, but label order in legend/tooltips is also reversed,

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