Commit 5641afe0 authored by Frank Bergmann's avatar Frank Bergmann

- Working on sales pipeline

parent 112b163d
......@@ -28,10 +28,17 @@ function launchDiagram(){
projectMainStore.each(function (rec) {
console.log('Store.each: '+rec);
var color = "lightblue";
switch (rec.get('on_track_status_id') {
case '66':
color = "green";
break;
}
chartStore.add({
x_axis: parseFloat(rec.get('presales_value')),
y_axis: parseFloat(rec.get('presales_probability')),
color: 'blue',
color: color,
diameter: 30,
caption: rec.get('project_name')
});
......@@ -41,7 +48,7 @@ function launchDiagram(){
return function(sprite, record, attr, index, store) {
return Ext.apply(attr, {
radius: 20, // record.get('diameter'),
fill: 'green' // record.get('color')
fill: record.get('color') // record.get('color')
});
};
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment