Skip to content

Instantly share code, notes, and snippets.

@bettysteger
Last active August 29, 2015 14:03
Show Gist options
  • Save bettysteger/8f4e26ad5963a7d8c13e to your computer and use it in GitHub Desktop.
Save bettysteger/8f4e26ad5963a7d8c13e to your computer and use it in GitHub Desktop.
How-to create a simple pie chart with tc-angular-chartjs
<canvas tc-chartjs-pie chart-data="pieData" chart-options="{segmentShowStroke: false}" width="25" height="25"></canvas>
$scope.pieData = [
{ value: 50, color: "#F7464A" },
{ value: 90, color: "#E2EAE9" },
{ value: 75, color: "#D4CCC5" },
{ value: 30, color: "#949FB1"}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment