Labels: textDirection does nothing
- Dominant language
- JavaScript
- Stars
- 67.7k
- Forks
- 11.9k
- Avg merge
- 7h 39m
- Merged PRs (30d)
- 5
Description
### Expected behavior
From what I understand from the documentation, it should force right to left or left to right text direction for the legend.
```
/**
* This will force the text direction 'rtl' or 'ltr' on the canvas for rendering the legend, regardless of the css specified on the canvas
* @default canvas's default
*/
textDirection: string;
```
### Current behavior
Nothing happens when textDirection is set. Or maybe I'm not looking for the right result... In that case I wish there was a demo of what this property does on the demo site of Chart.js.
The boolean `rtl` property is working well though.
### Reproducible sample
https://codepen.io/teodorachiosa/pen/RwmZmWR
### 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 125.0.6422.147
### Link to your project
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.