-
Notifications
You must be signed in to change notification settings - Fork 716
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(xychart): add README, add docs/xychart page, add XYChart gallery…
… tile (#963) * docs(xychart): add README content * docs(xychart): add details sections to README * docs(demo): add docs/xychart, Gallery/XYChartTile * deps(xychart): bump react peerDep to 16.4 for PointerEvents * docs(xychart): flesh out more readme sections * docs(demo/xychart): tweak XYChartTile * docs(xychart): readme tweaks * new(demo/gallery): add XYChart tile * fix(demo/xychart): export Example props * docs(xychart): add ResizeObserver dependency note, add SVG 2.0 note * lint(demo/docs/xychart): readme => README * fix(demo/sandbox/xychart): remove 100% height in sandbox styles * deps(demo/sandbox/xychart): add missing react-spring dep * docs(xychart): add download badge, add install instructions
- Loading branch information
1 parent
31087ed
commit d6fe1f3
Showing
10 changed files
with
430 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import XYChart, { XYChartProps } from '../../sandboxes/visx-xychart/Example'; | ||
import GalleryTile from '../GalleryTile'; | ||
|
||
export { default as packageJson } from '../../sandboxes/visx-xychart/package.json'; | ||
|
||
const tileStyles = { background: '#222' }; | ||
|
||
export default function XYChartITile() { | ||
return ( | ||
<GalleryTile<XYChartProps> | ||
title="XYChart" | ||
description="<XYChart />" | ||
exampleRenderer={XYChart} | ||
exampleUrl="/xychart" | ||
tileStyles={tileStyles} | ||
detailsHeight={0} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import XYChartReadme from '!!raw-loader!../../../../visx-xychart/README.md'; | ||
import * as XYChartPackage from '../../../../visx-xychart/src'; | ||
import DocPage from '../../components/DocPage'; | ||
import XYChartTile from '../../components/Gallery/XYChartTile'; | ||
|
||
const components = Object.values(XYChartPackage); | ||
|
||
const examples = [XYChartTile]; | ||
|
||
const XYChartDocs = () => ( | ||
<DocPage | ||
components={components} | ||
examples={examples} | ||
readme={XYChartReadme} | ||
visxPackage="xychart" | ||
/> | ||
); | ||
|
||
export default XYChartDocs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
packages/visx-demo/src/sandboxes/visx-xychart/sandbox-styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.