kiran
kiran

Reputation: 301

Graphael pie chart error?

I'm adding these headers corresponding to my local system path

<script language="javascript" src="/js/graphael/raphael.js" type="text/javascript"></script>
<script language="javascript" src="/js/graphael/g.raphael.js" type="text/javascript"></script>
<script language="javascript" src="/js/graphael/g.pie.js" type="text/javascript"></script> 

But I'm getting JavaScript error like:

Raphael is not defined in g.raphael.js file

Upvotes: 2

Views: 706

Answers (2)

Jaseem
Jaseem

Reputation: 2285

latest version of g.raphael and raphael are not compatible with each other. They changed their API and never really bothered to document it properly

Upvotes: 2

TJHeuvel
TJHeuvel

Reputation: 12618

Are you sure the paths to the files are correct? You can inspect them using firebug, or add an alert statement to each of the files and verify that they are run.

Upvotes: 1

Related Questions