stocks = FileAttachment("data/big_tech_stock_prices.csv").csv({ typed: true })
tickers = ["AAPL","ADBE","IBM","META", "GOOGL"]
viewof selectStock = Inputs.select(tickers, {label:"Stock", value: "GOOGL"})
filtered_stocks = stocks.filter(d => d.stock_symbol === selectStock)
Plot.plot({
width:1000,
x: {label:''},
y: {label:'Close ($)', grid:true},
marks: [
Plot.areaY(filtered_stocks, {x: "date", y: "close", fillOpacity: 0.3, fill:'#4197FF'}),
Plot.lineY(filtered_stocks, {x: "date", y: "close", stroke:'#4197FF'}),
Plot.ruleY([0])
]
})