Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

403
Views
I am getting the outer tick and inner tick on the y-axis, but the tick value is printing twice in my code. How can I prevent this?

enter image description here Above is the output I am getting for my code, if you can see the y-axis, my inner tick labels, and outer tick labels are overlapping. Here is my code to define the axis.

const strAxis = () => {
  gRef.current &&
    select(gRef.current)
    .call(
      axisLeft(props.scale)
      .tickSize(tickSize)
      //.ticks(3)
      .tickSizeInner(wd) //Grid
      //.tickSizeOuter(12)
    )
    .append('g')
    .attr("class", "yAxis")
    .call(axisLeft(props.scale))
    //.style("stroke", "#eee")
    .call(
      (g) =>
      g
      .selectAll(".tick text")
      //.append('g')
      .style("stroke", props.textColor)
      .style("font-size", props.tickFontSize || "12px")
      .style("margin-left", "50px")
    )


};
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!