Last active
August 29, 2015 14:03
-
-
Save bettysteger/8f4e26ad5963a7d8c13e to your computer and use it in GitHub Desktop.
How-to create a simple pie chart with tc-angular-chartjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas tc-chartjs-pie chart-data="pieData" chart-options="{segmentShowStroke: false}" width="25" height="25"></canvas> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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