type: String

Sets the type of chart to be rendered for corresponding dataSeries. One can choose from the following options.


Default: “column”
Options:
  • “line”
  • “column”
  • “bar”
  • “area”
  • “spline”
  • “splineArea”
  • “stepLine”
  • “scatter”
  • “bubble”
  • “stackedColumn”
  • “stackedBar”
  • “stackedArea”
  • “stackedColumn100”
  • “stackedBar100”
  • “stackedArea100”
  • “pie”
  • “doughnut”


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 data:[{
   type : "area",
  },
 ]
 .
 .
});
chart.render();


Try it Yourself by Editing the Code below.



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.