-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disproportional edge thickness #20
Comments
By the way, is it possible to use the argument I tried a python function, but I get an error saying it is not JSON serializable. If I try to give it a string representation of a python or javascript function I get no error, but it doesn't work either. |
Hey @cdanielmachado I'll have to play around with the customScalingFunction, since natively it is meant to be a JS function interpreted by VisJS's API. So the python binding would have to be hooked to that in a way. From their docs at http://visjs.org/docs/network/edges.html:
function(min,max,total,value) {
if (max === min) {`
return` 0.5;
}
else {
var scale = 1 / (max - min);
return Math.max(0,(value - min)*scale);
}
}
You might also want to see if you could use the |
Good point, I will try |
Using |
When drawing edges with different values, I would expect the thickness to be proportional to the values. For instance, in this case where the values are 10 and 12, I would expect one arrow to be 20% larger than the other:
This can be fixed by creating an hidden edge with a value of 0:
But it would be nice to see the expected sizes without using this workaround.
The text was updated successfully, but these errors were encountered: