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 Editing The Code


If you have any questions, please feel free to ask in our forums.Ask Question