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 Index
- var chart = new CanvasJS.Chart("container",
- {
- .
- .
- data: [{
- .
- .
- },{
- type: "error",
- linkedDataSeriesIndex: 1,
- }
- ],
- .
- .
- });
- chart.render();
Also See: