• Open in:

Chart with Gaps in Data

Breaking the line

If your data contains gaps – data points without values – you can easily make the chart display a gap as well. Just set its connect = false setting.

More about line series with gaps

Defining value ranges

You can apply different colors and other visual properties to the segments of series that fall within certain range of values. For that you can use “axis ranges”.

More about using axis ranges

Build this chart with AI

The prompt below can be used to build this chart with AI. For best coding results, use the most advanced AI models, like Claude Opus 4.6 and GPT-5.3-Codex. For more info and tips, check out amCharts AI docs.

Create a smoothed line chart with data from 1950-2005 where some data points are intentionally missing, creating visible gaps instead of connecting across absent points. Show circular markers at existing points. Color markers and segments differently for positive vs. negative values. Highlight a reference zone between 0 and 1000. Include area fill, pan/zoom, XY cursor with horizontal tooltips, horizontal scrollbar, and entrance animation. Use amCharts 5 library.

Demo source