Skip to content

Bug - ChartLegendTooltip - Title prop has wrong type #10128

@dlabrecq

Description

@dlabrecq

We recently updated a few components to match Victory's latest type updates. Now the title prop of ChartLegendTooltip incorrectly uses type string, which is inherited from VictoryLabelProps.

This title prop is actually used with VictroyLabel, so it should match the VictoryLabelProps type; string[] | StringOrNumberOrCallback.

As a workaround in Cost Management, I can cast to any. For example, title={(datum => datum.x) as any}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions