Skip to content

Legend Label Options missing type def for pointStyleWidth - Typescript #11366

@MasterCash

Description

@MasterCash

Expected behavior

property pointStyleWidth exists on options.plugin.legend.labels object and doesn't cause compiler error

Current behavior

compiler complains that pointStyleWidth doesn't exist but it should be according to documentation: https://www.chartjs.org/docs/latest/configuration/legend.html#legend-label-configuration

Reproducible sample

https://www.typescriptlang.org/play?module=1#code/JYWwDg9gTgLgBAbzgYQBYENZwL5wGZQQhwDkAxhrAHQBWAziQNwCwAUGwG6ZxkwAecALxwAJhDIBXEAFMAdjCoBzaTACiAG2kz5AIQCeASREAKAEQg9aTDFMBKOOjpwAEgBUAsgBlk6WVzoaWnIwLKxcUHAWVljCstIA7iiUMMa8fAA0iGxwOXAwemDSAFyk6sBxJOnZuSLoMOglCNW5ueroAEbS6nQlANqmAErSIqaZpjrqEtKjcKYAml3qEPEzpgDiUNJyqwAKElBgmqsA8lC+yqYAulWsLS219XQqPXC9Tbd3n22d6iUkAMRwCB4OAANQgMGkDBun0+DwarwAjAAmTKIgCcmQAzJkAKyZVFwLHXZp3bCXUnYGG5CBgGDACCyF7vT6HCSKcrM0ktTTKWQiRrcu7fLpcj6w3KQcowADK+U0AHVgCIYKgSoiAAzUiXYIU5XXi3JUoV0MjoTRiiV8QWGz56nDau56G0SnL2g2fD1GtjYWyMIA

Optional extra steps/info to reproduce

No response

Possible solution

if property is not intended for use, remove from documentation link, or add property to the types code

Context

I am using the usePointStyle property for the legend and I am trying to control the size of the circle

chart.js version

v4.3.0

Browser name and version

No response

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions