chartjs / chartjs/Chart.js

Axis titles are misaligned when the scale is reversed

Open
#12,239 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

When reversing the scale, I don't expect the axis title to move at all when I have align end or start set

### Current behavior

The axis title instead of ending with the chart grid, starts at the end of the chart grid, making it appear very odd

Image
Image
Image
Image

### Reproducible sample

https://codepen.io/crizan/pen/zxKeWxb

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v4.5.1

### Browser name and version

Chrome 147, Firefox 149

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