Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels: textDirection does nothing #11806

Open
elenachiosa opened this issue Jun 10, 2024 · 0 comments
Open

Labels: textDirection does nothing #11806

elenachiosa opened this issue Jun 10, 2024 · 0 comments

Comments

@elenachiosa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant