javascript - D3.js: Align X-Axis to specific value on Y-Axis (e.g. the origin) -
i want simple this:
http://alex.nt.fh-koeln.de/bilder/wlet1.jpg
the axis aligned origin. however, figure out how adjust axis in terms of width/height using transform:
svg.append("g") .attr("class", "x axis") .attr("transform", "translate(0," + height/2 + ")") .call(xaxis);
this put x-axis in middle of graph, not origin. guess there simple solution, can't seem find it.
Comments
Post a Comment