Skip to main content
100%

Yahoo Finance Chart Step 12 - Discontinuous Axis

✓ Published0🌍 Public
CColinEberhardt
Last edited Jul 16, 2015
Created on Jul 16, 2015

A Yahoo Finance stock chart displays OHLC (open, high, low, close) data as a time series, with an exponential moving average (EMA) overlay and a volume subplot. The example uses a discontinuous axis via the `fc.scale.discontinuity.tradedHours` provider from the d3fc library, which compresses non-trading hours. Built with D3.js (v3.5.5) and d3fc, it renders SVG elements, including an area gradient, line annotations, and crosshair callouts. Data is loaded from a static `yahoo.json` file, with the time axis filtered to trading hours (7 AM–7 PM).

AI-generated description

Similar vizzes