Home forums Using CanvasJS MVC action link chart to controller

This topic contains 1 reply, has 2 voices, and was last updated by  Shashi Ranjan 2 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24574

    I am trying to have it so when I click on a pie graph piece it will link to a controller, however the controller I am linking it to contains different parameters. I am utilizing javascript due to it being dynamic data. It works up until I try to get the value of the chart element.

    Javascript:
    function OnClickDPAFilterComplete(e) {
    window.open(‘@Url.Action(“Index”, “Dashboard”, new { id = ViewBag.id, type = e.dataPoint.label, DPAStatus = “Complete” })’);
    }

    Any ideas?

    #24588

    @rofori,

    Can you please share the sample project along with the sample data over Google Drive/One Drive with a brief explanation of your requirement so that we can understand your use-case better and help you out.

    ____
    Shashi Ranjan
    Team CanvasJS

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

You must be logged in to reply to this topic.