PDA

View Full Version : pie chart get sele



rafmak1
25 May 2016, 1:51 AM
Hi,
Is it possible to get the category from piechart ?
I want to click on category in pie chart


var taskchart = new Ext.Panel({
border: false,
height: 100,
items: {
store: taskstore,
xtype: 'piechart',
dataField: 'total',
categoryField: 'status',
series: [{
style: {
colors: [0xEE9C00, 0x00A2E8, 0x00C800, 0x2D78D3,0xFF0000]
}
}],
extraStyle:
{
legend:
{
display: 'right',
padding: 0,
font:
{
family: 'calibri',
size: 9
}
}
}
}
,listeners:{
'render':function(panel){ // do I need click or focus event
// taskchart.body.on('click', function(){
// get category here
// });
// taskchart.body.on('focus', function(selectedText){

// });
}
}
});
Regards

Gary Schlosberg
25 May 2016, 5:38 AM
I don't see click or focus events available on the pie chart.
http://docs.sencha.com/extjs/3.4.0/#!/api/Ext.chart.PieChart

rafmak1
25 May 2016, 5:46 AM
So, It's impossible to click on catgory in pie chart and oen a new TabPanel .Right ?