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

Title padding does not appear to be scriptable (or type needs updating?) #11759

Open
1 of 3 tasks
ddhogan opened this issue May 2, 2024 · 0 comments
Open
1 of 3 tasks
Labels
type: documentation type: types Typescript type changes

Comments

@ddhogan
Copy link

ddhogan commented May 2, 2024

Documentation Is:

  • Missing or needed?
  • Confusing
  • Not sure?

Please Explain in Detail...

The configuration section (https://www.chartjs.org/docs/latest/configuration/title.html#title-configuration) indicates that the padding property is scriptable, but the allowed types include only number | { top: number; bottom: number } and not Scriptable or ScriptableOptions, etc:

padding: number | { top: number; bottom: number };

Your Proposal for Changes

It appears that either:

  • The documentation needs to be updated to show that padding on the Title element is not scriptable
  • Or if it is scriptable, the types may need to be edited to include functions that return number | { top: number; bottom: number }

Example

No response

@LeeLenaleee LeeLenaleee added the type: types Typescript type changes label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation type: types Typescript type changes
Projects
None yet
Development

No branches or pull requests

2 participants