AnyChart stock charts support conditional coloring that dynamically styles series segments based on data values. Negative/positive coloring highlights where values fall below or rise above a defined baseline, making deviations immediately visible.
This sample renders average U.S. gas prices for 2017-2018 as a spline series with a baseline set at $2.54. Segments above the baseline are drawn in red and segments below in green using negativeStroke, while a line marker and text marker label the reference level on the plot. A stock scroller, range picker, and range selector provide interactive date filtering.
See the Stock Chart Coloring documentation for all configuration options.