AnyStock x-scale supports minimumGap and maximumGap settings that control the empty space before and after the data range, which is essential when combining annotations with price charts. This ensures drawings remain visible even beyond the last data point.
This sample configures ORCL candlesticks with 365-day minimum and 730-day maximum gaps, then overlays an Andrews Pitchfork and a highlighted rectangle annotation. Custom HTML tooltip formatting shows OHLC values, and major/minor grids plus a candlestick scroller with range controls complete the layout.
Follow the step-by-step OHLC Chart Tutorial to learn how stock charts are built. See the AnyStock documentation for all configuration options.