Creating Error Line Chart

An error line chart is a conventional line chart with the ability to show error (or deviations) in data.

In this section you will be shown how you can:

  • Create a simple error line chart

  • Configure properties of error bars

Creating a Simple Error Line Chart

As an example, we will create an error line chart that compares the estimated procurement from two suppliers.

An error line chart thus created looks like this:

FusionCharts should load here..

Given below is a brief description of the attributes used to create an error line 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 :

...

Configuring Error Bars

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

An error line chart, with the error bar customized, looks like this:

FusionCharts should load here..

Given below is a brief description of the attributes used to customize the error bars:

Attribute Description
halfErrorBar It is used to specify the type of error bars that will be rendered on the chart. Setting this attribute to 0 will show the high-low (full) error bars, setting it to 1 (default) will show the normal (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 of 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.
errorBarWidth It is used to specify the width of the error bars, in pixels.

The data structure needed to customize the error bars is given below:

...

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