-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gh-pages' of github.com:spotify/reactochart into gh-pages
* 'gh-pages' of github.com:spotify/reactochart: (45 commits) Gh pages v3.2.1 (#272) Gh pages v3.2.0 (#270) Update docs v3.1 v3.1.0 release Update CHANGELOG.md 3.1.0 add alignment prop for domain start and end label to keep within chart footprint (#264) Gh pages v3.0.3 (#261) v3.0.3 release 3.0.3 Fix issue with RangeBarChart test (#260) Generate docs and add tests for onClick handler (#258) allow for onclick event handlers (#257) Update sinon to the latest version 🚀 (#235) Greenkeeper/husky 4.2.3 (#239) chore(package): update raw-loader to version 4.0.0 (#197) Greenkeeper/react docgen 5.1.0 (#233) v3.0.2 release 3.0.2 Remove deprecated Lifecycle hooks (#234) ...
- Loading branch information
Showing
32 changed files
with
8,554 additions
and
14,582 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# These users will be requested for review when someone opens a pull request. | ||
* @acmei @iezer @scottsheffield @ekh64 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
docs/src/docs/BarChart/examples/BarChartLinearGradient.js.example
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,32 @@ | ||
const BarChartWithDefs = (props) => { | ||
const data = [ | ||
{x: 0, y: 80}, | ||
{x: 5, y: 60}, | ||
{x: 10, y: 90}, | ||
{x: 15, y: 30}, | ||
]; | ||
return <div> | ||
<svg width="0" height="0" style={{ position: 'absolute' }}> | ||
<defs> | ||
<linearGradient id="Gradient" x1="0" x2="0" y1="0" y2="1"> | ||
<stop offset="0%" stopColor="blue" /> | ||
<stop offset="50%" stopColor="white" /> | ||
<stop offset="100%" stopColor="red" /> | ||
</linearGradient> | ||
</defs> | ||
</svg> | ||
<XYPlot width={400} height={300}> | ||
<XAxis showGrid={false} title="Days since Zombiepocalypse" /> | ||
<YAxis title="Zombie Attacks"/> | ||
<BarChart | ||
barStyle={{fill: "url(#Gradient)"}} | ||
data={data} | ||
x={d => d.x} | ||
y={d => d.y} | ||
barThickness={40} | ||
/> | ||
</XYPlot> | ||
</div> | ||
}; | ||
|
||
ReactDOM.render(<BarChartWithDefs />, mountNode); |
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
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.