Last active
August 29, 2015 14:15
-
-
Save laem/7b03b1d4ebf37e389481 to your computer and use it in GitHub Desktop.
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
//JSX code | |
<HBar | |
// data is an array of {v: 18, label: "Joseph"} objects | |
data={randomData()} | |
/> | |
//CSS | |
<style> | |
.example1 .HBar .inside { | |
fill: white | |
} | |
.example1 .HBar .right { | |
fill: white | |
} | |
.example1 .HBar .left { | |
fill: white | |
} | |
.example1 rect { | |
fill: #018670 | |
} | |
.example1 .HBar .axis { | |
stroke: #018670; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example for https://github.com/laem/react-horizontal-bar-chart