我尝试使用来自 graphael 网站的相同代码在我的网站中添加 grahael 饼图
gRaphaël 静态饼图
<script src="http://raphaeljs.com/raphael.js" type="text/javascript" charset="utf-8"></script>
<script src="g.raphael.js" type="text/javascript" charset="utf-8"></script>
<script src="g.pie.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
window.onload = function () {
var r = Raphael("holder");
r.g.txtattr.font = "12px 'Fontin Sans', Fontin-Sans, sans-serif";
r.g.text(320, 70, "Static Pie Chart").attr({"font-size": 20});
r.g.piechart(320, 240, 150, [55, 20, 13, 32, 5, 1, 2, 10]);
};
</script>
</head>
<body class="raphael" id="g.raphael.dmitry.baranovskiy.com">
<div id="holder"></div>
<p>
Demo of <a href="http://g.raphaeljs.com/">gRaphaël</a> JavaScript library.
</p>
</body>
但是我没有得到图表并且在萤火虫上我得到了像 Raphael 没有定义的错误?