chartjs / chartjs/Chart.js

Clip option on scale doesn't do anything

Open
#11,741 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

Setting `clip: false` on the scales.x options should not clip the points that are on the x-axis limit.
Setting `clip: false` on scales.x and scales.y should act like setting `clip: false` on the options root level and not clip the data that appears out of the min and max limits
image

### Current behavior

image

Setting `clip: false` on both axes does nothing.

### Reproducible sample

https://codepen.io/sbourouis/pen/dyLqMay

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

4.4.2

### Browser name and version

Chrome Version 123.0.6312.107 (Official Build) (arm64)

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