Closed garthtarr closed 9 years ago
@garthtarr that works, but I'm wondering if a scale will be better with the ability to specify both an optional max
and min
node size. I'll work on it and submit a pull for your consideration. Glad you are testing with the non-igraph, since I couldn't find tests and didn't have time to work up a new set. Thanks for implementing so quickly. I'll try to include it into today's building widgets weekly post.
@timelyportfolio thanks for the great updates, I've made a couple of changes to ensure that the original examples still work.
I've hit an issue with the json object example where the sizes are specified:
I think a good fix will be to specify the maximum size that an vertex dot can be and rescale the sizes relative to the maximum size.
My javascript is terrible, I could probably work it out given enough time, but maybe you're able to quickly implement a simple fix. My suggested pseudo javascript code is below.
It assumes that the maxsize variable has been passed in through the xin object. My main issue is finding the maximum over a JSON array in javascript (don't mock me, I'm not JSON/javascript native!)