Skip to content

Instantly share code, notes, and snippets.

@clouddueling
Last active December 21, 2015 05:38
Show Gist options
  • Select an option

  • Save clouddueling/6258083 to your computer and use it in GitHub Desktop.

Select an option

Save clouddueling/6258083 to your computer and use it in GitHub Desktop.
Google Charts json for angularjs
$scope.progressChart = {
type: "PieChart",
displayed: false,
cssStyle: "height:200px; width:100%;",
data: {
"cols": [
{id: "month", label: "Today's Progress", type: "string"},
{id: "completed-id", label: "Completed Today", type: "number"},
{id: "due-id", label: "Due Today", type: "number"},
{id: "overdue-id", label: "Overdue", type: "number"}
],
},
options: {
"title": "Today's Progress",
colors: ["#98DB33", "#3498db", "#e74c3c"],
"displayExactValues": true,
}
};
$scope.systemsChart = {
type: "LineChart",
displayed: false,
cssStyle: "height:250px; width:100%;",
data: {
"cols": [],
"rows": []
},
theme: {
chartArea: {
width: '100%',
height: '100%'
}
},
options: {
title: "Systems Completed",
colors: ["#98DB33", "#3498db", "#e74c3c"],
"displayExactValues": true,
"vAxis": {
"gridlines": {"count": 4}
},
legend: {
position: 'bottom',
}
}
};
$scope.teamProgressChart = {
type: "ColumnChart",
displayed: false,
cssStyle: "height: 400px; width: 100%;",
data: {
"cols": [],
"rows": []
},
options: {
"title": "Team System Progress",
"isStacked": "true",
"fill": 20,
colors: [
"#98DB33",
"#3498db",
"#e74c3c",
"#3398DB",
"#DB7633",
"#DB3344",
"#DB3398",
"#7633DB",
"#33DBCA",
"#3398DB",
"#B2E467",
"#BC9BED"
],
"displayExactValues": true,
"vAxis": {
"title": null, "gridlines": {"count": 6}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment