Ignore negative areas in treemap layout.
This commit is contained in:
Родитель
da1006c501
Коммит
ae6ce3f373
|
@ -1735,7 +1735,7 @@ d3.layout.treemap = function() {
|
|||
row.area = 0;
|
||||
while ((n = children.length) > 0) {
|
||||
child = children[n - 1];
|
||||
if (!child.area) {
|
||||
if (isNaN(child.area) || child.area <= 0) {
|
||||
children.pop();
|
||||
continue;
|
||||
}
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -33,7 +33,7 @@ d3.layout.treemap = function() {
|
|||
row.area = 0;
|
||||
while ((n = children.length) > 0) {
|
||||
child = children[n - 1];
|
||||
if (!child.area) {
|
||||
if (isNaN(child.area) || child.area <= 0) {
|
||||
children.pop();
|
||||
continue;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче