WealthBar / angular-d3

AngularJS directives for declaratively using D3
http://wealthbar.github.io/angular-d3/
MIT License
156 stars 39 forks source link

# adding arc.coffee to be able to create simple arc representations #13

Closed ddragosd closed 11 years ago

ddragosd commented 11 years ago

here's a patch that adds support to build simple gauge-arc representation. I've also updated the main.html to include 2 of these samples:

<d3-chart height="320" class="span6 simple-arc1">
  <d3-arc inner-radius="0.5"  data="{{ {percentVal:60, text:'60%'}  }}" label="text" amount="percentVal" transition="bounce" transition-duration="1000"></d3-arc>
</d3-chart>
<d3-chart height="320" class="span6 simple-arc2">
  <d3-arc inner-radius="0.5"  data="{{ {percentVal:90, text:'90%'}  }}" label="text" amount="percentVal"></d3-arc>
</d3-chart>
chrisnicola commented 11 years ago

Hey, thanks for the PR, wasn't expecting anything so soon but I'll take a look later today and try to pull this in.

chrisnicola commented 11 years ago

:beers: