score:0

You can preprocess your data and increase weight value for some points:

 data.forEach(function(el) {
     if (el.weight < 5) {
         el.weight *= 10;
     }
 });

Live demo: https://jsfiddle.net/BlackLabel/mun80gbo/


Related Query

More Query from same tag