0
저는 드라큘라 그래프로 폴리 모양을 그리는 방법을 찾기 위해 서둘러서 라 프라 스 js에 매우 새로워졌습니다. 이것은 다음과 같은 costum renderer에 들어야합니다 :드라큘라 그래프에 다른 노드 모양 그리기?
var render = function(r, n) {
/* the Raphael set is obligatory, containing all you want to display */
var set = r.set().push(
/* custom objects go here */
r.rect(n.point[0]-30, n.point[1]-13, 62, 86)
.attr({"fill": "#fa8", "stroke-width": 2, r : "9px"}))
.push(r.text(n.point[0], n.point[1] + 30, n.label)
.attr({"font-size":"20px"}));
/* custom tooltip attached to the set */
set.items.forEach(
function(el) {
el.tooltip(r.set().push(r.rect(0, 0, 30, 30)
.attr({"fill": "#fec", "stroke-width": 1, r : "9px"})))});
return set;
};
누구든지 그러한 도움을 원한다면 도움이 될 것입니다.