d3.js - D3 Interpolate Line Chart on Time Axes -
i have pretty basic line chart i'm using plot data on based on time. working fine problem need address when plots along time axes close.
consider following data points:
{ "id": 101, x:15, y: 10, "origindt": "2012-12-01t18:49:06"} { "id": 101, x:15, y: 10, "origindt": "2012-12-02t28:49:06"} { "id": 101, x:15, y: 10, "origindt": "2012-12-03t18:49:06"} { "id": 101, x:15, y: 10, "origindt": "2012-12-04t08:10:06"} { "id": 101, x:15, y: 10, "origindt": "2012-12-04t09:21:06"} { "id": 101, x:15, y: 10, "origindt": "2012-12-04t11:32:06"} for first 3 points chart looks fine gets data occurs within short space of time data starts bunched , hard appreciate in chart.
i've been trying find sample online deals haven't found yet.
i've tried using basic interpolation commands on axes these don't work.
how can change axes:
var yaxis = d3.svg.axis() .ticksize(-width).tickpadding(10) .scale(y) .orient("left"); to "spread out" points in these situations?
this comment don't have necessary reputation.
you might want cartesian fisheye distortion
Comments
Post a Comment