Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 2e280b5

Browse files
committed
update example
1 parent 6dabff0 commit 2e280b5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ Example Pie Chart
6565
$scope.myData = {
6666
// Chart.js data structure goes here
6767
// e.g. Pie Chart Data Structure http://www.chartjs.org/docs/#doughnut-pie-chart-data-structure
68+
labels: [
69+
"Red",
70+
"Blue",
71+
"Yellow"
72+
],
73+
datasets: [
74+
{
75+
data: [300, 50, 100],
76+
backgroundColor: [
77+
"#FF6384",
78+
"#36A2EB",
79+
"#FFCE56"
80+
],
81+
hoverBackgroundColor: [
82+
"#FF6384",
83+
"#36A2EB",
84+
"#FFCE56"
85+
]
86+
}
87+
]
6888
};
6989

7090
$scope.myOptions = {

0 commit comments

Comments
 (0)