Created
September 4, 2015 16:36
-
-
Save tcosentino/a37d2c405e84ecea07bb to your computer and use it in GitHub Desktop.
This file contains 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
this.chart = AmCharts.makeChart(this.el, _.extend({ | |
type: "pie", | |
theme: "none", | |
dataProvider: this.collection.getAmChartData(), | |
valueField: "value", | |
titleField: "label", | |
theme: AmCharts.themes.dark, | |
outlineAlpha: 0, | |
//"radius": "28%", | |
// label stuff | |
labelsEnabled: true, | |
labelRadius: 3, | |
labelText: "[[percents]]%", | |
// color: "#FFF", | |
// make it 3d | |
depth3D: 10, | |
angle: 30, | |
legend: { | |
position: "right", | |
markerType: "circle", | |
theme: AmCharts.themes.dark, | |
// color: "#FFF" | |
} | |
}, this.chartOptions)); | |
// starting data chart 1 | |
[{"label":"Users Currently Logged In","value":1},{"label":"Agents Online","value":1},{"label":"Agents Offline over 30 days","value":7}] | |
// starting data chart 2 | |
[{"label":"Server 2012","value":2},{"label":"Win 8.1","value":6}] | |
// updated data chart 1 | |
[{"label":"Agents Offline over 30 days","value":2}] | |
// updated data chart 2 | |
[{"label":"Win 8.1","value":2}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment