Skip to content

Commit d920798

Browse files
authored
Fix snippet in "Theming" section README.md (airbnb#1863)
1 parent 1aed091 commit d920798

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎packages/visx-xychart/README.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -124,25 +124,25 @@ import { TextProps as SVGTextProps } from '@visx/text/lib/Text'; // just for typ
124124

125125
const customTheme = buildChartTheme({
126126
// colors
127-
backgroundColor: string; // used by Tooltip, Annotation
128-
colors: string[]; // categorical colors, mapped to series via `dataKey`s
127+
backgroundColor: string, // used by Tooltip, Annotation
128+
colors: string[], // categorical colors, mapped to series via `dataKey`s
129129

130130
// labels
131-
svgLabelBig?: SVGTextProps;
132-
svgLabelSmall?: SVGTextProps;
133-
htmlLabel?: HTMLTextStyles;
131+
svgLabelBig?: SVGTextProps,
132+
svgLabelSmall?: SVGTextProps,
133+
htmlLabel?: HTMLTextStyles,
134134

135135
// lines
136-
xAxisLineStyles?: LineStyles;
137-
yAxisLineStyles?: LineStyles;
138-
xTickLineStyles?: LineStyles;
139-
yTickLineStyles?: LineStyles;
140-
tickLength: number;
136+
xAxisLineStyles?: LineStyles,
137+
yAxisLineStyles?: LineStyles,
138+
xTickLineStyles?: LineStyles,
139+
yTickLineStyles?: LineStyles,
140+
tickLength: number,
141141

142142
// grid
143-
gridColor: string;
144-
gridColorDark: string; // used for axis baseline if x/yxAxisLineStyles not set
145-
gridStyles?: CSSProperties;
143+
gridColor: string,
144+
gridColorDark: string, // used for axis baseline if x/yxAxisLineStyles not set
145+
gridStyles?: CSSProperties,
146146
});
147147

148148
() => <XYChart theme={customTheme} />

0 commit comments

Comments
 (0)