Open-high-low-close chart
This visualization shows stock price data for Twitter (NYSE: TWTR) using an open-high-low-close chart, with red vertical lines indicating days when the closing price was lower than the opening price and green lines for the opposite. A semi-transparent black line overlays the chart to display a five-day moving average of the closing price. The code uses D3 v4, pulling data from a CSV file, and constructs the chart with SVG paths generated by the `d3.line` function, while axes are rendered using `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionAn example of a stock price or open-high-low-close chart. Red lines indicate the closing price is lower than the opening price - greens indicate the opposite. The grey line is a five day moving average of the closing price.
This is part of a series of visualisations called My Visual Vocabulary which aims to recreate every visualisation in the FT's Visual Vocabulary from scratch using D3.
forked from <a href='http://bl.ocks.org/tlfrd/'>tlfrd</a>'s block: <a href='http://bl.ocks.org/tlfrd/7143c56b26d0d07e3db79322e71aa7b1'>Open-high-low-close chart</a>