Skip to content

Commit

Permalink
Fix snippet in "Theming" section README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maurer2 authored Jul 28, 2024
1 parent 1aed091 commit e91ce36
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/visx-xychart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,25 @@ import { TextProps as SVGTextProps } from '@visx/text/lib/Text'; // just for typ

const customTheme = buildChartTheme({
// colors
backgroundColor: string; // used by Tooltip, Annotation
colors: string[]; // categorical colors, mapped to series via `dataKey`s
backgroundColor: string, // used by Tooltip, Annotation
colors: string[], // categorical colors, mapped to series via `dataKey`s

// labels
svgLabelBig?: SVGTextProps;
svgLabelSmall?: SVGTextProps;
htmlLabel?: HTMLTextStyles;
svgLabelBig?: SVGTextProps,
svgLabelSmall?: SVGTextProps,
htmlLabel?: HTMLTextStyles,

// lines
xAxisLineStyles?: LineStyles;
yAxisLineStyles?: LineStyles;
xTickLineStyles?: LineStyles;
yTickLineStyles?: LineStyles;
tickLength: number;
xAxisLineStyles?: LineStyles,
yAxisLineStyles?: LineStyles,
xTickLineStyles?: LineStyles,
yTickLineStyles?: LineStyles,
tickLength: number,

// grid
gridColor: string;
gridColorDark: string; // used for axis baseline if x/yxAxisLineStyles not set
gridStyles?: CSSProperties;
gridColor: string,
gridColorDark: string, // used for axis baseline if x/yxAxisLineStyles not set
gridStyles?: CSSProperties,
});

() => <XYChart theme={customTheme} />
Expand Down

0 comments on commit e91ce36

Please sign in to comment.