chartjs / chartjs/Chart.js

Lines are not displayed when changing the max and min values of the x-axis using the offset option.

Open
#11,697 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

Changing max and min will cause the line to appear completely on the offset interval.

### Current behavior

As shown in the following image, the line is missing from the offset, even though the point exists next to 2019.01.

![image](https://github.com/chartjs/Chart.js/assets/161824344/074e3667-3028-489f-8b4f-eb56c55c1c0b)
![image](https://github.com/chartjs/Chart.js/assets/161824344/ea6c87c2-190a-4881-8e63-00c9b423ce68)

### Reproducible sample

https://codepen.io/nicke1jp/pen/WNWNmPr

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.0.1

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.