diff --git a/projects/js-packages/charts/src/components/bar-chart/bar-chart.tsx b/projects/js-packages/charts/src/components/bar-chart/bar-chart.tsx index d7f14d7b9831a..4e95bc5c9b122 100644 --- a/projects/js-packages/charts/src/components/bar-chart/bar-chart.tsx +++ b/projects/js-packages/charts/src/components/bar-chart/bar-chart.tsx @@ -13,9 +13,7 @@ import { BaseTooltip } from '../tooltip'; import styles from './bar-chart.module.scss'; import type { BaseChartProps, SeriesData } from '../shared/types'; -interface BarChartProps extends BaseChartProps< SeriesData[] > { - gridVisibility?: 'x' | 'y' | 'xy' | 'none'; -} +interface BarChartProps extends BaseChartProps< SeriesData[] > {} type BarChartTooltipData = { value: number; xLabel: string; yLabel: string; seriesIndex: number }; diff --git a/projects/js-packages/charts/src/components/shared/types.d.ts b/projects/js-packages/charts/src/components/shared/types.d.ts index 8be89ee80f72b..c063dc962d41b 100644 --- a/projects/js-packages/charts/src/components/shared/types.d.ts +++ b/projects/js-packages/charts/src/components/shared/types.d.ts @@ -106,6 +106,10 @@ export type BaseChartProps< T = DataPoint | DataPointDate > = { * Legend orientation */ legendOrientation?: 'horizontal' | 'vertical'; + /** + * Grid visibility + */ + gridVisibility?: 'x' | 'y' | 'xy' | 'none'; }; export type GridVisibilityOptions = 'x' | 'y' | 'xy' | 'none';