Skip to content

Instantly share code, notes, and snippets.

@NMastracchio
Created February 25, 2015 22:31
Show Gist options
  • Save NMastracchio/4a2e1eff3732f5e34e31 to your computer and use it in GitHub Desktop.
Save NMastracchio/4a2e1eff3732f5e34e31 to your computer and use it in GitHub Desktop.
Sample controller for ember-zingchart addon
import Ember from 'ember';
export default Ember.Controller.extend({
myRenderOptions:{
"height":400,
"width":"100%",
"events":{
node_click:function(p){
console.log(p);
}
}
},
myChartData:{
"type":"line",
"title":{
"text":"Average Metric"
},
"series":[
{
"values":[69,68,54,48,70,74,98,70,72,68,49,69]
},
{
"values":[51,53,47,60,48,52,75,52,55,47,60,48]
}
]
},
myThemeData:{
"palette" : {
"line" : [
["#ffffff", "#196eed", "#196eed", "#196eed"],
["#ffffff", "#d94530", "#d94530", "#d94530"],
["#ffffff", "#fdb82b", "#fdb82b", "#fdb82b"],
["#ffffff", "#159755", "#159755", "#159755"],
["#ffffff", "#8e8e8e", "#8e8e8e", "#8e8e8e"]
]
},
"graph" : {
"background-color":"#f9f9f9",
"border-color":"#ddd",
"border-width":"1px",
"border-style":"solid",
"border-radius":5
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment