1
我想做一個徑向時鐘,但不是時鐘武器,我需要在每個指示時間(藍色)的路徑末尾有點。謝謝您的幫助!d3.js徑向時鐘,加點而不是時針
編輯:這樣的:https://puu.sh/sH03Y/c59281fb5e.png
畫線部分:
var clockLine = linesLayer.selectAll('.clock-line')
.data(fields);
clockLine.enter().append('line')
.attr('class', function (d) { return 'line clock-line ' + d.id; })
.attr('x1', 0).attr('y1', 0);
完全小提琴:http://jsfiddle.net/zh3owyr3/
你是什麼意思的「每個路徑末尾的點指示時間(藍色)」?像小時指標? – echonax
喜歡這個例子:https://puu.sh/sH03Y/c59281fb5e.png – Mantom