Line With Changing Color
Alternating line color via data
amCharts 4 brings a powerful concept – property fields, which allows binding any property of the Line series segment to values in data. Once a property, say a color, is overridden via data, the Line series remembers it and continues coloring subsequent segments in the same color.