javascript - D3 orient for multiple axis -


i want display y axis ticks on right side of line, want axis oriented on left hand side.

enter image description here

enter image description here

my code:

var usageaxis = d3.svg.axis()                 .scale(usagescale)                 .ticksize(-(width - chartpadding.left + 22))                 .orient('left').ticks(4); 

i tried transform text , line, not able reach out.

i want axis should below image :

enter image description here please guide me.


Comments