How To Make A Pie Chart?

As previously explained, I did show you how to plot a line graph. Now, it's time to show you how to make a pie chart. Also we will look at how to represent data in terms of a pie chart. Hopefully, you will be able to view and make your own pie charts. It is very simple and extremely easy.

To make this possible, you must have the point data and my point data I used to do a graph is shown below:-

Login to your Dashboard> Layout> Edit Html. Check the Expand Widget Template check box. Copy the scripts source code below and paste between the closing b:skin tag and the closing head tag. (Note - This script requires two external files to support it.)
<script src='http://onlinebiztutorials.googlepages.com/wz_jsgraphics.js' type='text/javascript'/>
<script src='http://onlinebiztutorials.googlepages.com/pie.js' type='text/javascript'/>

Save the template. Now moving forward on your post editor which is under Edit Html mode. Copy and paste this script into your post editor as shown below:-
<div id="pieCanvas" style="overflow: auto; position:relative;height:350px;width:380px;"></div>

<script type="text/javascript">
var p = new pie();
p.render("pieCanvas", "Pie Graph")


Continue with your post and don't forget to click on "Publish Post" button to complete the entry. That's it. Enjoy! (Note - red represents the month while blue indicates the revenue.)


Anonymous said...

I'd like to personally apologize for the downing of JavaScriptHost

Post a Comment

1. Comments posted must be accompanied by names or pseudonyms.
2. Anonymous posting and those containing profanities will be rejected.
3. Comments are moderated due to spam problems. I have to approve the comment before it will show up.

:)) ;)) ;;) :D ;) :p :(( :) :( :X
=(( :-o :-/ :-* :| 8-} :)] :-t b-( :-L