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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -