Skip to content

Last vertical grid line shows up in middle of chart in Chartjs 2.9.4. Fixed in 3.x #8373

@Marc-Simard

Description

@Marc-Simard

Since the issue seems to be resolved in version 3.x, this is for documentation purposes only.

Expected Behavior

Vertical grid lines should be displayed at regular intervals.

Current Behavior

The very last vertical grid line shows up in the middle of the chart when the width of the chart is under a certain threshold.

ChartVerticalGridlineIssue

Possible Solution

Use a wider chart is a workaround, but may not be possible based on chart data & implementation.

Steps to Reproduce

Demo of the issue:
https://jsfiddle.net/Marc_Simard/fxeor2jt/2/

Environment

  • Chart.js version: 2.9.4
  • Browser name and version: Firefox / Chrome

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