score:1

Accepted answer
const yAxisRight_g = svgContainer.append('g')
  .attr('class', 'y axis')
  .attr('transform', 'translate(' + (700) + ', 0)')
  .call(yAxisRight)
  .selectAll('text');

I was appending text and adding transform to it which did not work. Simply appended g/ group to the container and setting transformation.


Related Query