1. #561
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    Hi again,
    Is there a specific setting for the 'sliceclick' listener to work on pie charts? It doesn't work for pie charts for me. Am I missing something. Nothing happens.

    Here my code:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
            <title>chartpack test</title>
    		<link rel="stylesheet" type="text/css" href='ext-all.css' />
    		<script type="text/javascript" src=ext-base-debug.js'></script>
    		<script type="text/javascript" src='ext-all-debug.js'></script>
    		<script type="text/javascript" src='uxamchartpak-debug.js'></script>
    
            <script type="text/javascript">
    			Ext.onReady(function() {
    				var fusionPanel = new Ext.ux.Chart.amChart.Panel({
    					 title: 'Candidates per Year',
    					 chartCfg: { id: 'chart1'
    											, params: {
    												flashVars: {
    													debugMode: 0,
    													lang: 'EN'
    												},
    												wmode: 'transparent'
    											}
    					},
    					id: 'chartpanel',
    					 bodyStyle: {background: 'transparent'},
    					border: false,
    					chartURL: '../amcharts_2.0.7/amcharts/flash/ampie.swf',
    					dataURL: 'pie_data.xml',  //let the Flash chartObj load it
    					settingsURL: 'pie_settings.xml',
    					//autoLoad   : MCW.fusion+'XML/Col3D1.xml' ,  //let Ext autoLoad do the same.
    
    					//loadMask  : {msg: 'Loading data...'},
    
    					width: 600,
    					height: 400,
    					listeners: {
    						chartload: function (p, obj) { alert('chartload') },
    						error: function (p, obj) { alert('error') },
    						sliceclick: function () { alert('slice clicked') }
    					}
    				});
    
    				var center = new Ext.Panel({
    					 region:'center',
    					 //layout:'fit',
    					 width: 600,
    					 height: 400,
    					 margins:'5 0 5 0',
    					 bodyStyle: {background: 'transparent'},
    					 items: fusionPanel
    				});
    				
    				
    
    				var viewport = new Ext.Viewport({
    					 layout:'fit',
    					 items:[center]
    				});
    			});
    		</script>
        </head>
        <body>
    		
        </body>
    </html>
    EDIT: just doing some testing. If I add this function to my javascript, it gets called.
    Code:
    function amSliceClick()
    {
    	alert('amSliceClick function');
    }
    but the 'sliceclick' listener doesn't get called in the chartpack listeners. The 'sliceover' and 'sliceout' listeners have the same problem. Creating the amSliceOver and amSliceOut functions allow it to work, but thats not ideal.

    Is this a bug??

  2. #562
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Thumbs up


    @adammascherin --

    Not really a bug, just amCharts is evolving.

    If you're interested in additional events, use this fragment to bind desired events the amChart classes:

    Code:
    (function(){
    var dispatchEvent = function(name, id){
    
            var c, d = Ext.get(id);
            if(d && (c = d.ownerCt)){
               c.fireEvent.apply(c, [name, c, c.getInterface()].concat(Array.prototype.slice.call(arguments,2)));
            }
            c = d =null;
        },
        bindFunction = function(fnName){
            var cb = dispatchEvent.createDelegate(null,[fnName.toLowerCase().replace(/^am/i,'')],0);
            window[fnName] = (typeof window[fnName] == 'function') ? window[fnName].createInterceptor(cb): cb ;
         };
    
        //Bind amChart callbacks to an Ext.Event for the corresponding chart.
        Ext.each([  
           'amSliceClick'    //add more here
            ],
          bindFunction);
    }());
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #563
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    OK i'll take a look at that code, but isn't amSliceClick already bound to the sliceclick function in ChartPack?

    EDIT: ok, that code worked perfectly (THANKS!), but my question still stands: I thought amSliceClick was already bound to sliceclick in ChartPack? If not, what was the 'sliceclick' listener listening to?

  4. #564
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    Hey Doug,
    How do I make use of IntelliMask with my charts? I saw the fusion charts demo but when I try to use it with my amCharts, it errors out on "this.loadMask.show()" in the refreshChart() method. Do I need to include any other JS files or any special properties in the chart object?

  5. #565
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    any help Doug? Sorry, I know you're busy.

  6. #566
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Quote Originally Posted by adammascherin View Post
    Hey Doug,
    How do I make use of IntelliMask with my charts? I saw the fusion charts demo but when I try to use it with my amCharts, it errors out on "this.loadMask.show()" in the refreshChart() method. Do I need to include any other JS files or any special properties in the chart object?
    @adam--

    The IntelliMask class is already integrated into the Chart class heirarchy.

    Just add:

    Code:
     mediaMask  : 'Loading Chart...',   //to mask the chart object's container during rendering
     loadMask  : {msg:'Loading Chart Data...'},    //to mask the chart during data load ops
     autoMask  : true,     //let the classes figure it out
    ..to your Chart component configuration.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  7. #567
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    I have those properties set, but 1) I don't see it, and 2) as I said in my previous message, it errors out at "this.loadMask.show(...)" in the refreshChart() method from your demo.

  8. #568
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    someone?

  9. #569
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    92
    Vote Rating
    3
    adammascherin is on a distinguished road

      0  

    Default


    hey Doug,
    I'm still having issues with the loading mask on the amCharts. If you could assist me, that would be great.

    Adam

Thread Participants: 105

  1. galdaka (1 Post)
  2. jay@moduscreate.com (1 Post)
  3. stever (2 Posts)
  4. kubens (2 Posts)
  5. Thylia (3 Posts)
  6. dolittle (1 Post)
  7. alindsay55661 (1 Post)
  8. mystix (13 Posts)
  9. fangzhouxing (2 Posts)
  10. Saeven (1 Post)
  11. cmd.ares (1 Post)
  12. gabbay (2 Posts)
  13. FlexIDX (1 Post)
  14. panosru (19 Posts)
  15. evant (1 Post)
  16. damien (2 Posts)
  17. cmendez21 (2 Posts)
  18. jschick (32 Posts)
  19. wxwdt (4 Posts)
  20. hallikpapa (5 Posts)
  21. ealpha (5 Posts)
  22. ZooKeeper (13 Posts)
  23. brookd (2 Posts)
  24. dante (2 Posts)
  25. newbie23 (2 Posts)
  26. sb32 (8 Posts)
  27. jerrybrown5 (2 Posts)
  28. smartinec (3 Posts)
  29. wm003 (1 Post)
  30. stoober (1 Post)
  31. wdragon27 (1 Post)
  32. stumpy_uk (1 Post)
  33. jebirch (2 Posts)
  34. Ted Gaunt (1 Post)
  35. fmartinez (7 Posts)
  36. CaCtus491 (1 Post)
  37. sigaref (1 Post)
  38. japeth (1 Post)
  39. cprompt (1 Post)
  40. Kangulo (1 Post)
  41. OakGoat (1 Post)
  42. basshcm (3 Posts)
  43. jcmartinez (2 Posts)
  44. John Milton (3 Posts)
  45. Richie1985 (8 Posts)
  46. Rafael (8 Posts)
  47. BlueCamel (11 Posts)
  48. zerodivide (1 Post)
  49. Joyfulbob (3 Posts)
  50. JoyfulBobHome (2 Posts)
  51. Shaguar (11 Posts)
  52. james.tucker (1 Post)
  53. brenda (3 Posts)
  54. nicholasnet (4 Posts)
  55. VinceChen (1 Post)
  56. enihs (2 Posts)
  57. Jinping (1 Post)
  58. Scorpie (1 Post)
  59. errodr (2 Posts)
  60. bwoody (3 Posts)
  61. kuzi (4 Posts)
  62. xblitz (3 Posts)
  63. service@think-1st.de (1 Post)
  64. aserron (10 Posts)
  65. canxss (2 Posts)
  66. dajester2008 (2 Posts)
  67. damien2209 (2 Posts)
  68. SimoAmi (5 Posts)
  69. zeke (2 Posts)
  70. wemerson.januario (3 Posts)
  71. ziuek (3 Posts)
  72. qvrb (2 Posts)
  73. gondrong (15 Posts)
  74. Alex84 (5 Posts)
  75. timhussey (1 Post)
  76. hlimaiem (1 Post)
  77. peturth (3 Posts)
  78. bhasheer (3 Posts)
  79. einavb (6 Posts)
  80. rpnoble (1 Post)
  81. wiem.ok (1 Post)
  82. ebart (1 Post)
  83. hfpmartins (2 Posts)
  84. funkie (2 Posts)
  85. fs060171816 (4 Posts)
  86. iamsanin (1 Post)
  87. Boubalou (7 Posts)
  88. silve69 (7 Posts)
  89. cyan198 (5 Posts)
  90. gimmick66 (2 Posts)
  91. nextdigital (1 Post)
  92. chameleonwebservices (1 Post)
  93. Andre Froes (1 Post)
  94. opdecinc (2 Posts)
  95. JertoZ (2 Posts)
  96. lingz_public (8 Posts)
  97. hnspics (1 Post)
  98. MarcHetu (1 Post)
  99. atulmore (4 Posts)
  100. sraghavachari (3 Posts)
  101. MrSparks (3 Posts)
  102. jayaprasad (1 Post)
  103. Jan (HL) (2 Posts)
  104. HJM (4 Posts)
  105. adammascherin (10 Posts)

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar