Skip to content

[BUG] Ticks should align when multiple Y axis for line and bar chart #3484

@emn178

Description

@emn178

See https://jsfiddle.net/kng1d49d/
When I use two Y axis for line and bar in the same time, Y ticks does not align and show extra grid lines.

Expected Behavior

Y ticks should align.

Current Behavior

Y ticks does not align and show extra grid lines.

Possible Solution

In this sample, it show only one Y-axis grid line. See https://jsfiddle.net/kng1d49d/1/
But the ticks on right side still can't align, looks not good. The problem is caused by different count of ticks. Count of ticks on left side is 6, right is 5. I think to make sure rendering in the same count can fix this.

Environment

  • Chart.js version: 2.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions