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

120
Visualizações
Show display the label of a 'dot' node at the center in vis network

I am trying to build an animation using vis.js network. In one part, I need to show the value of a node at the center of the node.

Thus, I have convert the value of a node to its label. However, since I also resize the node, I have to use the dot node type. Here is an example of what I have here:

var nodes = new vis.DataSet([
    {id: 1, value:1, label: '1'},
    {id: 2, value:2, label: '2'},
    {id: 3, value:3, label: '3'},
    {id: 4, value:4, label: '4'},
    {id: 5, value:5, label: '5'}
]);
var options = {
    nodes:{
        shape: "dot",
        scaling: {
            customScalingFunction: function (min, max, total, value){
                return value/total
            },
            min: 5,
            max: 150,
        }
    }
};

Would appreciate if anyone can help.

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