Still have questions?
Contact support

Line Chart with Error Bars

Overview

This article explains how to create a Line chart with error bars.

To learn more about error charts in general and how to customize them, see Error Chart (Overview). In addition, you can read the Line Chart article to learn about other available settings.

Please note that error bars are also supported by Scatter Line charts – see Scatter Line Chart with Error Bars (this article describes the Cartesian Line chart).

Quick Start

To build a Line chart, use the anychart.line() chart constructor, then create a Line series with the line() method. To add error bars, call error().

// create a chart
chart = anychart.line();

// create a line series and set the data
var series = chart.line(data);

// create error bars
series.error("10%");

JsFiddle Playground