danibert1 Posted February 13, 2014 Report Share Posted February 13, 2014 Hi all, I have a bar chart that represents my top 10 products. Each bar shows one product. Is there any way to directly link each bar to it Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted February 14, 2014 Report Share Posted February 14, 2014 There is no API to assign hyperlinks to bars or markers, you can attach to the click event where you will receive information about the point and series clicked. When using jquery you would write $("#myDiv").click(function(evt) { doClick(evt); }); If you are not using jquery you would write var divHolder = document.getElementById('myDiv'); chart1.create(divHolder); divHolder.onclick = doClick; And the click handler would be something like function doClickEvent(evt) { if ((evt.hitType == cfx.HitType.Point) || (evt.hitType == cfx.HitType.Between)) { var s = "Series " + evt.series + " Point " + evt.point; alert(s); } } JuanC Quote Link to comment Share on other sites More sharing options...
0 Janusz Posted March 1, 2014 Report Share Posted March 1, 2014 Hi, I'm absolutly new in jCharFX. Your Answert confused me. As far i can see it; >>> event hasn't a property evt.hitType nor evt.series nor evt.point do i have to add any cfx specyfic event? Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted March 7, 2014 Report Share Posted March 7, 2014 We attach code to the click event before it gets to you and add those properties to the event object. Did you try the suggested code? If it did not work for you please try posting a small sample. JuanC Quote Link to comment Share on other sites More sharing options...
Question
danibert1
Hi all,
I have a bar chart that represents my top 10 products.
Each bar shows one product. Is there any way to directly link each bar to it
Link to comment
Share on other sites
3 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.