我是 Raphael 插件的新手,任何人都可以帮助我使用 raphael 绘制此图(http://raphaeljs.com/)
更新:我使用 Raphael http://jsfiddle.net/LG5zn/64/创建的图表的小提琴链接- 我想让所有元素可调整大小。
var paper = Raphael(50, 50, 500, 500);
var rect = paper.rect(10,10, 400, 400);
var rect1 = paper.rect(10,10, 200, 200);
var rect2 = paper.rect(210,210, 100, 100);
var rect3 = paper.rect(135,310, 275, 100);
var t = paper.text(100, 100, "Thermal");
var t2 = paper.text(250, 250, "Corona");
var t3 = paper.text(275, 350, "Arcing");
t.attr({ "font-size": 15, "font-family": "Arial, Helvetica, sans-serif" });
t2.attr({ "font-size": 15, "font-family": "Arial, Helvetica, sans-serif" });
t3.attr({ "font-size": 15, "font-family": "Arial, Helvetica, sans-serif" });
rect2.attr("fill", "#93cede");
rect1.attr("fill", "#72E768");
rect3.attr("fill", "#006ABD");