Skip to content

Missing Legend property on Chart ref object in type definition #10121

@EBruchet

Description

@EBruchet

Feature Proposal

Noticed that the legend property is missing from the type definition of the ref.current object that's attached to the Chart instance.

Console.log of the ref.current property:
Screenshot 2022-02-02 at 18 45 16

Possible Implementation

I'd like to add this myself, but not sure how to contribute to the project

Hopefully it's just a matter of adding legend: LegendElement<ChartType> to the list of readonly properties in the class definition of Chart (here if I'm not being clear:

readonly config: ChartConfiguration<TType, TData, TLabel>;
)

Again more than happy to create a PR myself but a bit confused on how to 😅

Thanks for any help/info you can give me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: typesTypescript type changes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions