Pallav

Mouse scroll disabled on pie charts

Recommended Posts

OS: Windows XP and Vista

browser: IE7

I created a chart with the following javascript:

<script language="javascript" type="text/javascript">
var piechart_typeReferer = new FusionCharts("/charts/v3/pie3d.swf", "mychartId_typeReferer", "100%", "160", "0", "0");
piechart_typeReferer.addParam("wmode", "transparent");
piechart_typeReferer.setDataXML("<graph><set value='10'/><set value='10'/></graph>"); 
piechart_typeReferer.render('typeReferer_chart');
</script>

 

And placed some extra <br/> on the page so the page is longer than the screen.

Everything looks fine until I try to use the scrollbutton when I'am hovering over the flash chart. At that moment the scroll button is disabled (On both the 2d and 3d piechart).

I've used the same page to load an Line chart, and then the problem doesn't occur. The problem also doens't occur when I'am using the pie chart and watch the page in Firefox.

Is this normal behaviour, and if so, how can i avoid it?

Thanks in advance.

Share this post


Link to post
Share on other sites

Hi,

 

 

 

In the pie chart, we handle mouse events internally to support slicing and rotation. As such, you'll need to click outside the pie chart once and then scroll.

Share this post


Link to post
Share on other sites

Hi Pallav,

The "you'll need to click outside the pie chart once and then scroll" method only works when you're using the <object> tag, But when I use the javascript approach, clicking outside the chart doesn't make any difference. And i really want to use the javascript method ;)

Is there a work arround, or maybe in an update, you could add an extra tag called "disableMouseEvents" or something like that? Just thinking out loud..

Share this post


Link to post
Share on other sites

I found the problem Pallav. Because we also have a hovering DIV in the report, we need to use the param

piechart.addParam(

"wmode", "transparent");

If this parameter is set, any mouseover on the flashchart will capture all mouse event, without clicking first.

I think a solution like i've posted before could be a way to tackle this problem.

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