0
bin sehr neu zu raphael js so und irgendwie in Eile zu finden, wie ich eine Poly-Form mit Dracula-Graph zeichnen kann. Dies wird in einem costum Renderer gehen wie:Eine unterschiedliche Knotenform auf Dracula-Graphen zeichnen?
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;
};
Wenn jemand mit einem solchen würde gerne die Hilfe behandelt hat.