I am attempting to utilize Plotly (based on D3) to read through a CSV and return data into three separate traces - one for each year, in this case.
This Pen depicts the intended result with the data hardcoded into the JS: ‘sales’ data (y-axis), by car dealership (x-axis) and year (essentially a “grouping” variable).
I have researched examples of D3 reading CSV data but am unclear how to read my data into the separate traces by year.
Plotly example – reading CSV
Plotly example - basic time series
For what it’s worth, here is the sample data.
If anyone can point me in the right direction I would appreciate it! Thank you!
(I apologize if this is an ‘easy’ question as I am new to JavaScript and have very little Plotly or D3 experience.)