Skip to content
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

voronoi treemap area #193

Open
cfblaeb opened this issue Aug 6, 2015 · 0 comments
Open

voronoi treemap area #193

cfblaeb opened this issue Aug 6, 2015 · 0 comments

Comments

@cfblaeb
Copy link

cfblaeb commented Aug 6, 2015

Hi,

It appears that the areas of the voronoi cells do not correspond to the $AREA set in ones network.
The same network using the regular treemap algorithm in JIT works perfectly fine and generates correct areas.

A small example network that works fine in treemap, but fails with voronoi treemap is:

var json = {
"children": [
{
"children": [
{
"id": "achild1",
"name": "childish name",
"data": { "$area": 1.0 }
},
{
"id": "achild2",
"name": "childish name2",
"data": { "$area": 5.0 }
}
],
"data": { "$area": 10.0 },
"id": "shallow_id",
"name": "shallow_name"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id",
"name": "medium_name"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id2",
"name": "medium_name2"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id3",
"name": "medium_name3"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id4",
"name": "medium_name4"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id5",
"name": "medium_name"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id62",
"name": "medium_name2"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id73",
"name": "medium_name3"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id8",
"name": "medium_name"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id92",
"name": "medium_name2"
},
{
"children": [],
"data": { "$area": 1.0 },
"id": "medium_id03",
"name": "medium_name3"
}
],
"data": {},
"id": "root",
"name": "dontshow"
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant