Sets the type of chart to be rendered for corresponding dataSeries. One can choose from the following options.
var chart = new CanvasJS.Chart("container", { . . data:[{ type : "area", }, ] . . }); chart.render();
Also See: