svgaddpie
| svgaddpie | 
  Purpose
 
  
  Synopsis
 
 procedure svgaddpie(gid: string, x: real, y: real, r: real, p1: real, p2: real)
 procedure svgaddpie(x: real, y: real, r: real, p1: real, p2: real)
 
  Arguments
 
 | 
     gid 
     | 
     Object group ID.
     | 
| 
     x 
     | 
     The x coordinate of the center point.
     | 
| 
     y 
     | 
     The y coordinate of the center point.
     | 
| 
     r 
     | 
     Radius (side length of the pie slice).
     | 
| 
     p1 
     | 
     Start position on the circle (percentage).
     | 
| 
     p2 
     | 
     End position on the circle (percentage).
     | 
  Example
 
 
  This code draws a pie chart with 5 slices of 20% width each around the center point (150,150) with a radius of 100.
 
 forall(i in 1..5) do
  svgaddgroup("gp"+i, "Pie"+i)
  svgaddpie(150, 150, 100, (i-1)*0.2, i*0.2)
end-do
  Further information
 
 
 1. Pie slices are by default filled with the group color. If they are not to be filled with any color specify value
 SVG_NONE for the style property
 SVG_FILL.
 
 
 2. If no group ID is specified, the pie slice is added to the last group that has been created.
 
 
