Sign in to follow this  
mrantz

Can't Get Bar Chart Clickable Links To Work In Ipad

Recommended Posts

I am using the Sencha Touch framework with the FusionCharts evaluation version.

 

The javascript bar chart renders fine, but I am unable to click a bar in the bar chart. The links work fine in Chrome, but not on the ipad.

 

I am using the FusionCharts XT Evaluation version 3.2.2 SR3

 

This is how I create my chart:

 

var salesChart = new FusionCharts("Column3D", "sChart", "100%", "100%", "0", "1");

 

Ext.Ajax.request(

{

url: 'Services/Wireless.asmx/GetSalesChart',

method: 'POST',

headers: { 'Content-type': 'application/json;charset=utf-8;' },

success: function (xml)

{

salesChart.setXMLData(xml.responseText);

salesChart.render('SalesChartDiv');

}

});

 

I set up an attribute for link="JavaScript:alert('test');" in the <set> element. On the ipad when I press on a bar it shows the tooltip for the bar but doesn't fire the click event. Is this because I am using the evaluation version or is there another property that I need to set?

 

The xml looks like this:

 

<chart caption="some title" xAxisName="Stage" yAxisName="Revenue">

<set label="a" value="50" link="JavaScript:alert('test');" />

</chart>

 

Edited by mrantz

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Welcome to the FusionCharts forum :)

 

Thank you for the post.

 

I am afraid, I an unable to replicate the issue using the XML data.

 

Please find attached screen shot of the chart rendered along with the alert message.

 

Also, we recommend using j- method instead of JavaScript- method.

 

For more details on 'Using JavaScript functions as links', please refer to the link below,

http://docs.fusionch...JavaScript.html

 

Hope this helps !

post-23884-0-23630100-1333004234_thumb.png

post-23884-0-76830100-1333004541_thumb.png

Edited by Bindhu

Share this post


Link to post
Share on other sites
Guest Sumedh

I meet the same problem, and I find that it works in iPad(iOS 4.3), but not work in iPad(iOS 5.01 or later)

 

How can I make chart cilckable?

 

Hi,

 

We are looking into the issue. We will update you on this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this