I'm using cubism.js to graph some static data from a JSON object. We want to be able to display a years worth of data, with a point for each day. I have the solution working partially but I'd like to be able to set the scale independent of today's date, i.e. I'd like to graph data from yesterday to the corresponding day last year. I've tried the following without success:
context.scale(d3.time.scale().domain([start, end]).range([0,96]))
where start and end come from the JSON object. Is it possible to set the cubism scale to behave in this way ?
Many thanks,
Michael