Bar Chart with Error Bars

Overview

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 anychart.bar() chart constructor, then create a Bar series with the bar() method. To add error bars, call error().

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

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

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

Playground

You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.