d3.js - D3 Area chart that tends to zero where values are missing -
i have data this:
document: [{"key":"01/01/2001","values":2}, {"key":"02/01/2001","values":1}, {"key":"31/01/2001","values":2}] i creating area chart .interpolate("linear") create following: idea being represent number of documents "created" throughout january.

however, kind of misleading output imply there values throughout january, when there aren't 2 @ start , 1 @ end.
my questions are:
- fundamentally wrong graph represent data, , should bar chart used instead?
- can d3 add evenly spaced "zero" values each day in january?
- is best can use .interpolate("cardinal") produce like:

thanks in advance!
i think answer other post gives usable answer, reposting here not dead-end visitors coming google , finding post first (as did).
Comments
Post a Comment