Sets the specified property of dataSeries.
Parameters:var chart = new CanvasJS("container", { . . data:[{ //dataSeries1 }, { //dataSeries2 }, . ], . . }); chart.render(); chart.data[0].set("type", "doughnut");
Please refer to DataSeries Element for complete list of properties that can be set via this method.
Also See: