-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
type: typesTypescript type changesTypescript type changes
Milestone
Description
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:

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:
Line 483 in 56661e4
| 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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: typesTypescript type changesTypescript type changes