File tree 1 file changed +5
-2
lines changed
packages/react-charts/src/components/ChartLegendTooltip
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import { getTheme } from '../ChartUtils/chart-theme';
28
28
*
29
29
* See https://github.com/FormidableLabs/victory/blob/main/packages/victory-tooltip/src/index.d.ts
30
30
*/
31
- export interface ChartLegendTooltipProps extends ChartCursorTooltipProps {
31
+ export interface ChartLegendTooltipProps extends Omit < ChartCursorTooltipProps , 'title' > {
32
32
/**
33
33
* The active prop specifies whether the tooltip component should be displayed.
34
34
*/
@@ -295,8 +295,11 @@ export interface ChartLegendTooltipProps extends ChartCursorTooltipProps {
295
295
themeColor ?: string ;
296
296
/**
297
297
* The title prop specifies a title to render with the legend.
298
+ *
299
+ * @propType number | string | Function | string[]
300
+ * @example title={(datum) => datum.x}
298
301
*/
299
- title ?: string ;
302
+ title ?: string [ ] | StringOrNumberOrCallback ;
300
303
/**
301
304
* This prop refers to the width of the svg that ChartLegendTooltip is rendered within. This prop is passed from
302
305
* parents of ChartLegendTooltip, and should not be set manually. In versions before ^33.0.0 this prop referred to the
You can’t perform that action at this time.
0 commit comments