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

114
Visualizações
paddingOuter gets me a huge outer padding

I have a bar graph at http://hahnsb0579.liveblog365.com/ and currently having an issue with the paddingOuter.

I get a huge padding at the top if I set .paddingOuter(0.11). but if I change it to .paddingOuter(0.10), seems like it's just working fine. I've been trying to solve this issue for 2 days already but couldn't solve it.

The key piece of code related to this issue is as below.

const yScale0 = d3.scaleBand()
                .domain(nexMeritDataObjBefore.members.map(function (e) {
                    return e.name;
                }))
                .rangeRound([0, yRangeMax])
                .paddingOuter(0.11)
                .paddingInner(0.2)
                .align(0.8)
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The documentation for band.round (which is used by rangeRound) says:

Note that if the width of the domain is not a multiple of the cardinality of the range, there may be leftover unused space, even without padding!

Therefore, a simple solution is just using range instead:

.range([0, yRangeMax])
about 4 years ago · Juan Pablo Isaza Relatório
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