Personal tools

Template:PieChart: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
No edit summary
No edit summary
Line 33: Line 33:
var tmp =result_tmp [i];
var tmp =result_tmp [i];
var counted = countItems(content,tmp);
var counted = countItems(content,tmp);
var x = [tmp , counted];
 
data.push(x);
var point = [name:tmp , y:counted];
data.push(point);
}
}
var chart;
var chart;
Line 59: Line 60:
                     events: {
                     events: {
                         click: function() {
                         click: function() {
                             alert ('Category: '+ this.category +', value: '+ this.y+', X value: '+this.x+', Point Name: '+ this.point.name);
                             alert ('Category: '+ this.category +', value: '+ this.y+', X value: '+this.x+', Point Name: '+ this.name);
                         }
                         }
                     }
                     }

Revision as of 16:43, 13 June 2013