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:
Родитель
fe6128180e
Коммит
06e9ba99cf
|
@ -64,9 +64,10 @@ d3.layout.chord = function() {
|
||||||
index: di,
|
index: di,
|
||||||
subindex: dj,
|
subindex: dj,
|
||||||
startAngle: x,
|
startAngle: x,
|
||||||
endAngle: x += v * k,
|
endAngle: x + v * k,
|
||||||
value: v
|
value: v
|
||||||
};
|
};
|
||||||
|
x += v * k;
|
||||||
}
|
}
|
||||||
groups.push({
|
groups.push({
|
||||||
index: di,
|
index: di,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче