d3plus 링을 처리하고 링에서 기본 연결 만 표시해야합니다. Gamma
이어서 선택 Alpha
가 Zeta
은 Theta
& Eta
표시되어야 d3plus 링에서 기본 연결 만 표시하는 방법
<!doctype html>
<meta charset="utf-8">
<script src="http://www.d3plus.org/js/d3.js"></script>
<script src="http://www.d3plus.org/js/d3plus.js"></script>
<div id="viz"></div>
<script>
var connections = [ {"source": "alpha", "target": "beta"},
{"source": "alpha", "target": "gamma"},
{"source": "beta", "target": "delta"},
{"source": "beta", "target": "epsilon"},
{"source": "zeta", "target": "gamma"},
{"source": "theta", "target": "gamma"},
{"source": "eta", "target": "gamma"} ]
var visualization = d3plus.viz()
.container("#viz") // container DIV to hold the visualization
.type("rings") // visualization type
.edges(connections) // list of node connections
.focus("alpha") // ID of the initial center node
.draw() // finally, draw the visualization!
. 나는 방법을 시도했다
.color
.color(String|Function|Object)
사용
key secondary
값을 허용
color
. 이 표현식을 작성하는 방법은 무엇입니까?
D3 Plus Documentation이 (가) 중심의 노드에 대한 보조 노드의 목록을 제가하려고했던 것을 달성하는 데 도움을 생성하는 코드를 주석
필요한 동작은 무엇입니까? 이미지를 업로드 할 수 있습니까? –
우리 [이 토론을 계속 채팅] (http://chat.stackoverflow.com/rooms/117387/discussion-between-gupteshwari-and-dragon-slayer)을 보자. – Gupteshwari