-
6 May 2012 3:27 AM #1
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>
-
Best Answer Posted by mitchellsimoens
You need to do everything within the onReady method in Ext.setup:
Code:Ext.setup({ onReady : function() { //do stuff here } });
-
9 May 2012 8:53 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,655
- Vote Rating
- 435
- Answers
- 3107
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.
-
9 May 2012 5:01 PM #3
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.
-
22 Sep 2012 9:24 PM #4
Hi,
Is there any example to use fusion charts with Sencha touch with navigation to fallow MVC framework


Reply With Quote