-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website): add @nivo/line low level components doc
- Loading branch information
Raphaël Benitte
committed
Dec 12, 2017
1 parent
be93061
commit cf8a5ca
Showing
10 changed files
with
194 additions
and
62 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
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
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
59 changes: 59 additions & 0 deletions
59
website/src/components/charts/line/Components/LineAreaSvg.js
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,59 @@ | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
import React, { PureComponent } from 'react' | ||
import ComponentPropsDocumentation from '../../../properties/ComponentPropsDocumentation' | ||
|
||
const properties = [ | ||
{ | ||
key: 'xScale', | ||
type: '{Function}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'yScale', | ||
type: '{Function}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'height', | ||
type: '{number}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'curve', | ||
type: '{string}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'animate', | ||
type: '{boolean}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'motionDamping', | ||
type: '{number}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'motionStiffness', | ||
type: '{number}', | ||
required: true, | ||
}, | ||
] | ||
|
||
export default class LineAreaSvg extends PureComponent { | ||
render() { | ||
return ( | ||
<div> | ||
<h2>LineAreaSvg</h2> | ||
<ComponentPropsDocumentation chartClass="LineAreaSvg" properties={properties} /> | ||
</div> | ||
) | ||
} | ||
} |
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,59 @@ | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* Copyright 2016-present, Raphaël Benitte. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
import React, { PureComponent } from 'react' | ||
import ComponentPropsDocumentation from '../../../properties/ComponentPropsDocumentation' | ||
|
||
const properties = [ | ||
{ | ||
key: 'xScale', | ||
type: '{Function}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'yScale', | ||
type: '{Function}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'curve', | ||
type: '{string}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'lineWidth', | ||
type: '{number}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'animate', | ||
type: '{boolean}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'motionDamping', | ||
type: '{number}', | ||
required: true, | ||
}, | ||
{ | ||
key: 'motionStiffness', | ||
type: '{number}', | ||
required: true, | ||
}, | ||
] | ||
|
||
export default class LineSvg extends PureComponent { | ||
render() { | ||
return ( | ||
<div> | ||
<h2>LineSvg</h2> | ||
<ComponentPropsDocumentation chartClass="LineSvg" properties={properties} /> | ||
</div> | ||
) | ||
} | ||
} |
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,29 @@ | ||
/* | ||
* This file is part of the nivo project. | ||
* | ||
* (c) 2016 Raphaël Benitte | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
import React from 'react' | ||
import Helmet from 'react-helmet' | ||
import LineSvg from './LineSvg' | ||
import LineAreaSvg from './LineAreaSvg' | ||
|
||
const Components = () => ( | ||
<div className="inner-content"> | ||
<div className="page_content"> | ||
<Helmet title="@nivo/line low level components documentation" /> | ||
<div className="chart_header"> | ||
<h1 className="page_header"> | ||
<strong>@nivo/line</strong> low level components | ||
</h1> | ||
</div> | ||
<LineSvg /> | ||
<LineAreaSvg /> | ||
</div> | ||
</div> | ||
) | ||
|
||
export default Components |
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