I use cubism.js to display some static data from a JSON object. We want to be able to display data for several years, with an indication for every day. I have a solution that works in part, but I would like to establish a scale that does not depend on today's date, i.e. I would like to display data from yesterday on the corresponding day of last year. I tried the following without success:
context.scale (d3.time.scale (). domain ([start, end]). range ([0,96]))
where the start and end comes from the JSON object. Is it possible to adjust the scale of cubism?
Thank you very much,
Michael
source share