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

167
Visualizações
Vis.js-based Graph Network view (extremely) slow after updating options

I have created a Vis.js Network graph with various nodes and edges, with its initial options, etc.

At some point, on user input, I update its options, e.g. like that (where GraphView is the Vis.js Network instance) :

GraphView.setOptions({
    interaction:{
        hideEdgesOnDrag:true
    }
})

The change does take effect, but the result is totally non-optimal: it suddenly becomes extremely slow. I've even tried calling GraphView.redraw() after the above options change, but still to no avail.

The only thing that works is to completely destroy the graph and re-create it from scratch. But then, the node layout is completely messed up (and different than the initial one), although all that should change is whether edges are visible when the user drags a node.

Any ideas? Am I doing something wrong?

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