Visualize Swift ring data structure and network topology by using d3.js