Skip to content

Instantly share code, notes, and snippets.

@laem
Last active August 29, 2015 14:15
Show Gist options
  • Save laem/7bbcc65533bdabede557 to your computer and use it in GitHub Desktop.
Save laem/7bbcc65533bdabede557 to your computer and use it in GitHub Desktop.
//JSX code
<HBar
data={randomData(9, 10000, true)}
width="230"
height="300"
focus="3" // focus on the 3rd bar
textPosition="dynamic" // insert texts in bars if possible
axis="false"
sort="descending"
formatter={formatter} // fn applied to values, should return a string
/>
//CSS
<style>
.example2 .HBar .inside {
fill: white
}
.example2 .HBar .right {
fill: white
}
.example2 .HBar .axis {
stroke: #4D386C;
}
.example2 .HBar .focused {
stroke: rgba(255, 255, 255, 0.5);
stroke-width: 1px;
}
</style>
@laem
Copy link
Author

laem commented Feb 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment