Skip to content

Commit 9da7616

Browse files
committed
rename missing type
1 parent dc5ad7f commit 9da7616

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/core/components/core-legend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function ChartLegend({
2222
actions?: React.ReactNode;
2323
position: "bottom" | "side";
2424
i18nStrings?: BaseI18nStrings;
25-
onItemHighlight?: (detail: CoreChartProps.LegendHoverDetail) => void;
25+
onItemHighlight?: (detail: CoreChartProps.LegendItemHighlightDetail) => void;
2626
getLegendTooltipContent?: CoreChartProps.GetLegendTooltipContent;
2727
}) {
2828
const i18n = useInternalI18n("[charts]");

src/core/interfaces.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export interface CoreChartProps
344344
/**
345345
* Called when a legend item is highlighted.
346346
*/
347-
onLegendItemHighlight?: (detail: CoreChartProps.LegendHoverDetail) => void;
347+
onLegendItemHighlight?: (detail: CoreChartProps.LegendItemHighlightDetail) => void;
348348
/**
349349
* Called when series/points visibility changes due to user interaction with legend or filter.
350350
*/
@@ -444,7 +444,7 @@ export namespace CoreChartProps {
444444
items: TooltipContentItem[];
445445
}
446446

447-
export interface LegendHoverDetail {
447+
export interface LegendItemHighlightDetail {
448448
item: LegendItem;
449449
}
450450
export interface VisibleItemsChangeDetail {

0 commit comments

Comments
 (0)