chartjs / chartjs/Chart.js

includeBounds doesn't work for linear axes

Open
#10,066 2 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

When `scales[scale].ticks.includeBounds` is set to `false`, I expect to not see the last bound tick value.

### Current behavior

The last tick is visible and is overlapping the previous tick.

![image](https://user-images.githubusercontent.com/6430313/149001168-ac0c7134-c48b-4a34-9571-ad8a8863507b.png)

### Reproducible sample

https://codesandbox.io/s/chart-js-includebounds-doesnt-work-for-linear-axes-vbps8

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v3.7.0

### Browser name and version

Chrome 97

### 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.