I've created a stacked area chart in d3.js and would like to update the chart with data from a CSV when one of the scenario buttons is clicked.
Here's a link to the bl.ocks.org gist I've created: http://bl.ocks.org/saraquigley/094e38913b550cf5f27f
How do I correctly bind the data and get the chart to update and display the appropriate scenario.
Thanks! Sara
Thanks for your comment, in code veritas. I was able to answer my own question by further cleaning up my code and dealing with a data filtering issue that I had caused. I've updated the gist, same link as above in case it helps anyone with a similar problem.
Sara