Janusz Posted February 26, 2014 Report Share Posted February 26, 2014 Hi, how can i catch the click event on a partof a pie chart, and how to get the info whitch part was clicked? thanks for your help 1 Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted March 7, 2014 Report Share Posted March 7, 2014 How you connect to the click event depens if you are using jquery or not. Using jQuery $("#myDiv").click(function(evt) { onChartClick(evt); }); Not using jQuery var divHolder = document.getElementById('myDiv'); divHolder.onclick = onChartClick; To get the info you inspect the hitType, series and point properties of the "evt" object passed to the handler, e.g. function onChartClick(evt) { if (evt.hitType == cfx.HitType.Point) { var s = "Series " + evt.series + " Point " + evt.point; alert(s); } } JuanC Quote Link to comment Share on other sites More sharing options...
0 nabaraj.cn Posted December 10, 2014 Report Share Posted December 10, 2014 HI JuanC, I am developing one application where I have applied the above mentioned method. This works in desktop mozilla and chrome but not working in mobile and safari. I have uploaded the code in the below link please check. My project is with jquery and jquery mobile. http://stagingpc.com/demo-project/jquery-try/jchartfx/ It will be helpful if you can give any solution. Thanks. Quote Link to comment Share on other sites More sharing options...
Question
Janusz
Hi,
how can i catch the click event on a partof a pie chart, and how to get the info whitch part was clicked?
thanks for your help
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.