Bar Chart with Error Bars


This article explains how to create a Bar 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 Bar Chart article to learn about other available settings.

Quick Start

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

// create a chart
chart =;

// create a bar series and set the data
var series =;

// create error bars