MCPcopy
hub / github.com/chart-kit/react-native-chart-kit / BarChartProps

Interface BarChartProps

src/charts/bar/BarChart.tsx:22–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20const barWidth = 32;
21
22export interface BarChartProps extends AbstractChartProps {
23 data: ChartData;
24 width: number;
25 height: number;
26 fromZero?: boolean;
27 withInnerLines?: boolean;
28 yAxisLabel: string;
29 yAxisSuffix: string;
30 chartConfig: AbstractChartConfig;
31 style?: Partial<ViewStyle>;
32 horizontalLabelRotation?: number;
33 verticalLabelRotation?: number;
34 /**
35 * Show vertical labels - default: True.
36 */
37 withVerticalLabels?: boolean;
38 /**
39 * Show horizontal labels - default: True.
40 */
41 withHorizontalLabels?: boolean;
42 /**
43 * The number of horizontal lines
44 */
45 segments?: number;
46 showBarTops?: boolean;
47 showValuesOnTopOfBars?: boolean;
48 withCustomBarColorFromData?: boolean;
49 flatColor?: boolean;
50}
51
52type BarChartState = {};
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected