Home › forums › Using CanvasJS › creating links by onclick of splice of pie chart
This topic contains 5 replies, has 2 voices, and was last updated by Sunil Urs 3 years, 11 months ago.
Hi….I want to add a link to splices of pie chart……I want to add html links to it.
Can someone please help me with this…
Here is a jsfiddle for the same.
I have one more doubt…in this can I call a div of same html as a link instead of some site like google or yahoo….if yes then how?
Can you please explain what you meant by “can I call a div of same html as a link”.
In any case once the click event handler is called you should be able to execute any code as per your requirement.
I mean that There are 4 charts which i have defined in 4 div. So onclick of a splice of pie chart i want to show one chart which is in one div…
You can achieve this using jQuery’s show/hide methods. Just place the code inside the event handler.
You must be logged in to reply to this topic.