fix bug that causes chord layout to break in Opera

The chord layout uses an assigment like x += y to specify the end angle of a
chord segment. This seems to return the new value in most browsers, but the old
value (i.e. x - y) in Opera.
This commit is contained in:
Lars Kotthoff 2011-10-03 19:49:44 +01:00
Родитель fe6128180e
Коммит 06e9ba99cf
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -64,9 +64,10 @@ d3.layout.chord = function() {
index: di,
subindex: dj,
startAngle: x,
endAngle: x += v * k,
endAngle: x + v * k,
value: v
};
x += v * k;
}
groups.push({
index: di,