carlcraig / tc-angular-chartjs

AngularJS directives for Chart.js
http://carlcraig.github.io/tc-angular-chartjs/
Other
233 stars 83 forks source link

Need to show value in pie chart #50

Closed kapil019 closed 8 years ago

kapil019 commented 8 years ago

I need to show a value like https://cloud.githubusercontent.com/assets/5559523/6345904/ba1ccbe2-bc0a-11e4-92d4-31bfd07851fe.png

SarasArya commented 8 years ago

I have the same issue... Did you get an answer to it?

justin-nodeboy commented 8 years ago

+1, looks like you should be able to use the chart-legend="true" tag but alas it throws the following error in chrome. angular.js:12330 ReferenceError: segments is not defined

ayastreb commented 8 years ago

@kapil019, @SarasArya, @justin-nodeboy I'm doing it with CSS and a separate element for value inside the pie chart. You can check how it looks here (go to Nutrition tab), and the implementation is here

kapil019 commented 8 years ago

Thanks @ayastreb let me try this.

carlcraig commented 8 years ago

Going to close this as there seems to be some form of solution.

Please re-open this if there is still a problem.