Commit 7e51502c authored by Michael Lange's avatar Michael Lange
Browse files

Create a single-bar example of distribution-bar in the styleguide

parent e435d542
Showing with 11 additions and 0 deletions
+11 -0
......@@ -17,6 +17,10 @@ export default Component.extend({
clearInterval(this.get('timer'));
},
distributionBarDatum: computed(() => {
return [{ label: 'one', value: 10 }];
}),
distributionBarData: computed(() => {
return [
{ label: 'one', value: 10 },
......
......@@ -67,4 +67,11 @@
</div>
{{/freestyle-annotation}}
{{/collection.variant}}
{{#collection.variant key="single bar"}}
{{#freestyle-usage 'distribution-bar-single'}}
<div class="block" style="height:50px; width:600px;">
{{distribution-bar data=distributionBarDatum}}
</div>
{{/freestyle-usage}}
{{/collection.variant}}
{{/freestyle-collection}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment