Hi!
I often use d3js in my daily work to produce visualizations of various data. In your case, I see this is data from the stock market but what format the uploaded CSV should have and what needs to be stored in the database?
The big part will be to create a CSV from the database with all the data needed for the chart so we can use it instead of the static one you created from the original chart. We will also need to change its structure (column headers) to correspond to the data it contains. Then some changes will be done to the coffeescript that powers the chart, that's why I need to know what you want to show on the chart. On which criteria the top and lowest filters should be based? When all that is done, it will be easier to change the rest of the chart.
If you want to discuss this further, please contact me.
Regards,
Renaud