Skip to content

Commit

Permalink
feat(chart): Added optional id to data (#34)
Browse files Browse the repository at this point in the history
This id is copied over to onClick responses by recharts which helps
recognize keys that are different from title such as translation.
  • Loading branch information
SanjeevLakhwani authored Nov 6, 2024
2 parents 8df0e94 + 798e02e commit a2daee4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/types/chartTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type CategoricalChartDataType = CategoricalChartDataItem[];
export interface CategoricalChartDataItem {
x: string;
y: number;
id?: string;
}

export type TooltipPayload = TooltipPayloadItem[];
Expand Down

0 comments on commit a2daee4

Please sign in to comment.