Setting linkedDataSeriesIndex lets you choose to which dataSeries the Error Series should be attached.
By default, Error Series will be linked to its previous dataSeries.
Default: previous dataSeries Indexvar chart = new CanvasJS.Chart("container",
{
.
.
data: [{
.
.
},{
type: "error",
linkedDataSeriesIndex: 1,
}
],
.
.
});
chart.render();
Also See: