Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small error in the code example in the "Theming" section #1863

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading