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 2 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5552

    ankita.agarwal
    Participant

    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…

    #5553

    Sunil Urs
    Keymaster

    Ankita,

    Here is a jsfiddle for the same.


    Sunil Urs

    #5554

    ankita.agarwal
    Participant

    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?

    #5555

    Sunil Urs
    Keymaster

    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.

    #5556

    ankita.agarwal
    Participant

    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…

    #5558

    Sunil Urs
    Keymaster

    You can achieve this using jQuery’s show/hide methods. Just place the code inside the event handler.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.