How can a stacked area chart be created with this library?
I am guessing that the areaChart function would only need some small changes, I did dig into the code, however I am not really experienced with d3, thus having a hard time.
Specifically, I think I would need to change the d3.svg.area() for a svg.layout.stack() call.
The code above gives me an error, if I do try to use the commented out code, I do not get a desirable result:
Also note that the above is not producing the series labels.
I am quite sure it should be easy to pull a stacked area chart using d3, given certain experience with the library.
How can a stacked area chart be created with this library?
I am guessing that the areaChart function would only need some small changes, I did dig into the code, however I am not really experienced with d3, thus having a hard time.
Specifically, I think I would need to change the d3.svg.area() for a svg.layout.stack() call.
I did try setting it up like this:
The code above gives me an error, if I do try to use the commented out code, I do not get a desirable result:
Also note that the above is not producing the series labels. I am quite sure it should be easy to pull a stacked area chart using d3, given certain experience with the library.
Could anybody assist me with this?