Skip to content

Line is diagonal if yAxis options set #676

@victorbnl

Description

@victorbnl

If no title is set for yAxis, it behaves correctly, there is an horizontal line

But if we set a title, the line becomes diagonal:

To reproduce,

Go on https://www.chartjs.org/chartjs-plugin-annotation/master/guide/types/line.html#configuration and add in the options:

scales: {
    yAxis: {
        title: {
            display: true,
            text: "My First Dataset"
        }
    }
},

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions