Skip to content

samirscode/Pie-Chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Raphael Pie Chart Built on the official demo in raphaeljs website to draw half/full pie chart , with given percentages and colors

##Usage: 1- Embed lib Scripts and PieChart.js
2- Creat container div with any ID you want and Call the drawPie.

		/* Parameters:
		  -> Target Div Id
		  -> Center point x
		  -> Center point y
		  -> Chart width
		  -> Chart Height 
		  -> Radious of the chart
		  -> Percentages of each section Total SUM = 100 ex: Array(10,20,70)
		  -> Color of each section  ex: Array('red','yellow','green')
		  -> Type "Full" for full circle "Half" for half circle
		*/
	drawPie(targetDiv,x,y,chartWidth,chartHeight,radious,percentages,colors,type);
  • You can check example.html if not clear.

##Sample:

About

Draw simple half/full pie chart using Raphaeljs SVG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published