javascript - Scatter Chart in analog clock -
i have json data array this:
var data=[ {"someproperty":"number","time":"2014-12-11t09:24:39.000z"}, {"someproperty":"number","time":"2014-12-11t09:27:39.000z"}, {"someproperty":"number","time":"2014-12-11t09:30:39.000z"}, ..... ]
i need draw circle each 1 in array (with radius of "someproperty") , put them in analog clock according time. found picture similar problem here:
but no code :(
i use d3.js it. succeeded in doing using rotate circles on circumference , intersect each other. want put them across radius in order avoid collision. see examples of collision detection http://bl.ocks.org/mbostock/1747543 don't see there option control x,y position want.
if read question right, "someproperty" provide radius value, , "time" provides angle.
i suggest transforming these datum polar coordnates described here: d3.js plot elements using polar coordinates
theta angle converted "time". r "someproperty"
Comments
Post a Comment