Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!