Displaying 1 result from an estimated 1 matches for "adddataset".
2007 Jul 10
6
Having trouble using data returned by Ajax.request
...etElementById(''weekdiv'').innerHTML = ''<div><canvas
id="newchart"
height="250" width="700"></canvas></div>'';
var weekLine = new Plotr.LineChart(''newchart'',newOptions);
//weekLine.addDataset(dataset2);
weekLine.addDataset(graphData);
weekLine.render();
}
As you can see in the last bit of code, I''ve commented out the line:
"weekLine.addDataset(dataset2)". dataset2 is an array defined in
javascript on this page, that is identical to the string that i...