Creating Error Bar Chart

An error bar chart is a type of an error chart used to show variations in data from its original value.

In this section you will be shown how you can:

  • Create a simple error bar chart

  • Configure properties of error bars

Creating a Simple Error Bar Chart

As an example, we will create an error bar chart that compares the lifespan of systems at the Daly City Serramonte, Bakersfield Central, Garden Groove Harbour stores.

An error bar chart thus created looks like this:

FusionCharts should load here..

Given below is a brief description of the attributes used to create an error bar chart:

Attribute Description
label It is used to specify the label for the data item. The label is rendered on the x-axis. This attribute belongs to the category object, which belongs to the categories object.
value It is used to specify the numeric value for a data item. This value will be plotted on the chart. This attribute belongs to the data object, which belongs to the dataset object.
errorValue It is used to specify the error value that will be plotted as the error bar on the chart. This attribute belongs to the data object, which belongs to the dataset object.

The data structure for creating the above chart is given below:

...

Error Bar Configuration

You can customize the cosmetic properties of error bars to change their appearance.

An error bar chart, after customizing the error bars, looks like this:

FusionCharts should load here..

Given below is a brief description of the attributes used to customize the error bars in an error bar chart:

Attribute Description
halfErrorBar It is used to specify whether full error bars will be rendered instead of half error bars. Setting this attribute to 0 will show full error bars, setting it to 1 (default) will render half error bars.
errorBarColor It is used to specify the hex code of the color that will be used to render the error bars.
errorBarAlpha It is used to specify the transparency for the error bars. This attribute takes values between 0 (transparent) and 100 (opaque).
errorBarThickness It is used to specify the thickness of the error bars, in pixels.
errorBarWidthPercent It is used to configure the width of the error bars as a percentage of the column width.

The data structure for creating the above chart is given below:

...

There! You have now seen how you can create an error bar chart and customize the error bars.