Home forums Chart Support MVC action link chart to controller

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #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.

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

    Any ideas?



    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.