Template:PieChart: Difference between revisions
From FANTOM5_SSTAR
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 | |||
data.push( | 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 | alert ('Category: '+ this.category +', value: '+ this.y+', X value: '+this.x+', Point Name: '+ this.name); | ||
} | } | ||
} | } |
Revision as of 16:43, 13 June 2013