1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
    goodoldshoes is on a distinguished road

      0  

    Default Answered: Sencha Touch and FusionCharts, Drill Down Charts does not work

    Answered: Sencha Touch and FusionCharts, Drill Down Charts does not work


    I use Sencha+FusionCharts in my Report Program, it works fine in iPad2(iOS 4.3),
    but when I deploy the same program in iPad2(iOS5.01 or iOS5.1), Drill Down Charts does not work, show the details below

    Working: when I note this code, it shows the alert when I touch January column
    //Ext.setup({});

    Not working:
    Ext.setup({});

    So, why?

    Code:
    <div id="chartContainer">FusionCharts will load here!</div>
    <script>
     Ext.setup({});
     var cc = "<chart caption='Assets' xAxisName='Month' yAxisName='Sum' numberPrefix='$' animation='0'>";
     cc = cc + "<set label='January' value='14400' color='001EEE' link='javascript:alert(1);'/>";
     cc = cc + "<set label='February' value='19600' color='001EEE'/>";
     cc = cc + "<set label='March' value='24000' color='001EEE'/>";
     cc = cc + "<set label='April' value='15700' color='001EEE'/>";
     cc = cc + "<set label='May' value='18700' color='001EEE'/>";
     cc = cc + "</chart>";
     
     FusionCharts.setCurrentRenderer('javascript');
     var myChart = new FusionCharts( "FusionCharts/Column3D.swf", "myChartId", "80%", "80%", "0", "1" );
     myChart.setDataXML(cc);
     myChart.render("chartContainer");
    </script>

  2. You need to do everything within the onReady method in Ext.setup:

    Code:
    Ext.setup({
        onReady : function() {
            //do stuff here
        }
    });

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,655
    Vote Rating
    435
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    You need to do everything within the onReady method in Ext.setup:

    Code:
    Ext.setup({
        onReady : function() {
            //do stuff here
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    May 2012
    Posts
    4
    Vote Rating
    0
    goodoldshoes is on a distinguished road

      0  

    Default


    Thank you, I will take your suggestion, and I find it is a bug of Sencha Touch 2.0.0, and I have upgraded to version 2.0.1, the problem is solved. Thanks anyway.

  5. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    1
    Vote Rating
    0
    atulagrawal is on a distinguished road

      0  

    Default


    Hi,

    Is there any example to use fusion charts with Sencha touch with navigation to fallow MVC framework