Creating a Step Line Chart

A step line chart is used to visualize trends for a particular event which is not continuous in nature. For a given set of data, a step line chart enables you to compare the magnitude and change in values at different points of the same series. It also helps you discern the intermittent pattern of the trend at the same time.

In this section, you will be shown how you can create a simple step line chart.

As an example, we will create a step line chart to compare the revenue earned with the expenses incurred for the last year.

The step line chart thus created looks like this:

FusionCharts should load here..

Given below is a brief description of the attributes used to create a step line chart:

Attribute Name Description
label It is used to specify the label for a data item. The label is rendered on the x-axis. This attribute belongs to the category object, which in turn belongs to the categories object.
value It is used to specify the value for a data item. This attribute belongs to the data object, which in turn belongs to the dataset object. The dataset object is an object array that can be used to make multiple datasets.
seriesName It is used to specify a name for the dataset. This name is shown in the legend box rendered below the chart. This attribute belongs to the dataset object. The dataset object is an object array that can be used to make multiple datasets.

The data structure needed to create the above multi-series step line chart is given below:

...

The data structure above is similar to that of any multi-series chart in the FusionCharts Suite XT, except for the type attribute.

There! You have now seen how you can create a step line chart.