Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

411
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda