Results 1 to 3 of 3

Thread: pie chart get sele

  1. #1
    Sencha User
    Join Date
    Jan 2016
    Posts
    12

    Default pie chart get sele

    Hi,
    Is it possible to get the category from piechart ?
    I want to click on category in pie chart

    Code:
       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

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I don't see click or focus events available on the pie chart.
    http://docs.sencha.com/extjs/3.4.0/#...chart.PieChart

  3. #3
    Sencha User
    Join Date
    Jan 2016
    Posts
    12

    Default

    So, It's impossible to click on catgory in pie chart and oen a new TabPanel .Right ?

Similar Threads

  1. Replies: 1
    Last Post: 1 Dec 2014, 1:56 PM
  2. Ext.chart.Chart doesn't display correct chart with date field
    By AndreyPris in forum Ext: Discussion
    Replies: 1
    Last Post: 28 Nov 2014, 3:16 AM
  3. Ext.chart.Chart doesn't display correct chart with date field
    By AndreyPris in forum Community Discussion
    Replies: 0
    Last Post: 27 Nov 2014, 4:55 AM
  4. Replies: 5
    Last Post: 5 Sep 2013, 12:56 AM
  5. Replies: 0
    Last Post: 24 May 2011, 11:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •