Introduction

This project leverages D3.js for data visualization, focusing on Dow Jones Industrial Average 30 stocks financial data sourced from IEX Exchange and Yahoo Finance in CSV format. The visualizations include Candlestick, area Line, and Comparison line charts.

Each visualisation serves to answer the following research questions:

  • Q1 - Analyze performances of stock prices over time. Are there any detectable trends?
  • Q2 - Analyze the possible price movement based on past patterns?
  • Q3 - How do the stocks of companies compare to each other over a given period?
  • Q4 - How do macroeconomic indicators influence stock prices within the Dow Jones Industrial Average?

    Providing data for this research question - there are four visualistions in total clickcable under the left-side navbar:

  • Q2 - A CandleStick Chart - A candlestick chart is essential for researching topic Q2 as it displays historical price patterns, such as support/resistance levels or head-and-shoulders patterns, and visualises the (Open, High, Low, Close) data for DJIA stocks. Through the identification of these patterns, analysts are able to assess prospective future price movements, providing valuable insights into probable trends based on past behaviour.
  • Q1 - A Area Line Chart - A stock's area line chart facilitates the analysis of research question Q1 by presenting a distinct graphical representation of the stock's long-term performance patterns. It illuminates past changes in pricing, allowing analysts to detect similar trends or irregularities over time.
  • Q3 - Comparison line Chart - A two-line comparative chart effectively addresses research question Q3 by directly contrasting the stock performance of two companies within a specific timeframe. This visualisation displays the relative patterns, similarities, or differences in the changes of prices, allowing for the straightforward identification of comparative advantages or disadvantages.
  • Q4 - A Area Line Chart - A line chart depicting macroeconomic data is used to investigate research question Q4. This chart displays economic variables such as GDP growth, unemployment rate, and interest rates, alongside stock values. This visualisation demonstrates the correlation between macroeconomic developments and stock movements, illustrating the impact of broader economic shifts on the Dow Jones Industrial Average.
  • Key Information

    Development of the visualizations was multi-faceted, incorporating the following technologies and features:

    • HTML and JavaScript for structure and functionality
    • D3.js v.7 for dynamic data visualization, available at https://d3js.org
    • Interactive elements such as responsiveness on hover and zoom
    • Custom CSS for improved user experience

    About the data

    The financial dataset offers complimentary end-of-day data for all equities presently included in the Dow Jones Industrial Average. There is a CSV file named after each of the 30 components of the index, with the file's name being the symbol of the corresponding stock (e.g. AAPL for Apple). Each file contains market-wide data that has been modified for historical purposes. The data is available on a daily basis and covers a maximum period of 5 years. The date information is maintained in the data folder of the project. The data is organised into columns which include the following information: Date, Open, High, Low, Close, Change, Change %, and Volume.Additional macroeconomic data encompassing significant variables such as GDP, interest rate, and unemployment rate from the identical time period as the Dow Jones stock data (2014 to 2019). The data is obtained from the Federal Reserve Economic Data (FRED) and is placed in the project's macro data folder as a CSV file.