Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

116
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda