Skip to content

Instantly share code, notes, and snippets.

View tcosentino's full-sized avatar

Troy Cosentino tcosentino

View GitHub Profile
// From agentListServer
var statusIcon = "";
switch(Number(oObj.aData["OnlineStatus"])) {
case 0: if (oObj.aData["rCriticality"] === '0' || oObj.aData["rCriticality"] === '') { statusIcon = "GrayDot.png"; } else { statusIcon = "agentAlarm1.png"; } break;
case 1: if (oObj.aData["currentUser"] === "") { statusIcon = "GreenDot1.png"; } else { statusIcon = "BlueAgent1.png" } break;
case 2: if (oObj.aData["currentUser"] === "") { statusIcon = "GreenDot1.png"; } else { statusIcon = "YellowAgent1.png" } break;
case 198: statusIcon = "suspended.png"; break;
case 199: statusIcon = "FrongGlobe58.png"; break;
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%",