Home forums Using CanvasJS chart wont render Reply To: chart wont render


In a success callback, I am putting in all the data and still not seeing the chart render on my browser. Any idea what could be going wrong?

Here’s a look at the code I have written for grabbing and storing the data: Is this an error elsewhere in the code?

success: function(data) {

window.onload = function (){
var dataGuys = [];

data[‘totalvoteval’].forEach(function(value, index){
dataGuys.push({x: (index * 10), y: value});

var chart = new CanvasJS.Chart(“chartContainer”, {
title: {
text: “The Presentation Data Chart”;

data: [

type: “splineArea”;

dataPoints: dataGuys;