• Open in:

Line Chart with Horizontal Target

It is very common to have a target value line on a chart and it is also common to display the parts of the chart that fall below and above that target line differently. Achieving this effect is very easy with amCharts.

Key implementation details

To get the effect we use the axis range feature but we do it with a twist. Commonly axis ranges are created on axes (hence the name) but we can also create a range on the series. In this setup the range settings affect the look of parts of the series where values fall into our range.

Related tutorials

Demo source