You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function range line 3-5 in chord.js does not work in a non-observable environment. It gives an array of "undefined" values.
Solution:
function range(i,j) { return [...Array(j-i).keys()].flatMap(j=>j+i) }
In line 100 of chord.js empty chords should be removed by chords = Object.values(chords);
But this also leaves e.g. "functions" in chords and breaks the compareValue function in lines 7-14
Solution:
chords = chords.filter(Object);
The text was updated successfully, but these errors were encountered:
Nothing in d3-chord (or any D3 library) requires Observable. Here is an example in JSFiddle that demonstrates that the range function works as intended:
The function range line 3-5 in chord.js does not work in a non-observable environment. It gives an array of "undefined" values.
Solution:
In line 100 of chord.js empty chords should be removed by chords = Object.values(chords);
But this also leaves e.g. "functions" in chords and breaks the compareValue function in lines 7-14
Solution:
The text was updated successfully, but these errors were encountered: