Scatter Plot Iteration 2
This scatter plot shows daily closing prices for Apple and Google stocks from November and December 2022, with date on the x-axis and closing price on the y-axis. It uses d3.scaleTime for the x-axis, d3.scaleLinear for the y-axis, and d3.scaleOrdinal with d3.schemeSet1 to color-code points by stock symbol. The data comes from a CSV file of S&P 500 stock data, parsed with d3.csvParse. Axes and labels are rendered using d3.axisBottom, d3.axisLeft, and custom utility functions.
AI-generated descriptionA scatter plot of 2022 Daily S&P 500 Stocks Data with Date on the X Axis and Closing Price on Y axis. A subset of stocks data consisiting of Apple and Google stocks for the month of November and December were considered for the plot - https://gist.githubusercontent.com/kratikashetty/ce2fc2c3b5797665339317ce85d582b1/raw/8e538b683be93c18541a2872fe879857341660dd/sp500_stocks_2022_subset.csv
Displayed the axes using d3.scaleTime for X axis and d3.scaleLinear for Y axis. Different colors are displayed for Google and Apple stocks using d3.scaleOrdinal.