Home Forums Chart Support chart.render() not working

chart.render() not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • #41815

    I am trying to run following canvas JS code, and new to Canvas JS

    alert(“inside before onload function ()”);
    window.onload = function () {
    alert(“start function ()”);

    var chart = new CanvasJS.Chart(“chartContainer”, {
    title: {

    text: “Column Chart in JSP using CanvasJS”
    },

    data: [
    {
    type: “column”,
    dataPoints: [
    { label: “DCS”, y: 10 },
    { label: “WXM”, y: 15 },
    { label: “CCM”, y: 25 },
    { label: “Archival”, y: 30 },
    { label: “Total”, y: 28 }
    ]
    }
    ]
    });
    alert(“before chart render”);
    chart.render();
    alert(“after chart render”);

    }

    not displaying chart after alert of start function() onload. not getting any error also on console..

    • This topic was modified 1 year, 12 months ago by Mvk4atos.
    #41818

    When i inspect the page – i get following error

    Uncaught ReferenceError: CanvasJS is not defined.

    #41821

    You have included the SCRIPT?

    #41823

    Thank you

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

You must be logged in to reply to this topic.