# Difference between revisions of "Pie chart"

From JSXGraph Wiki

A WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 39: | Line 39: | ||

*/ | */ | ||

this.point2.moveTo([this.midpoint.coords.usrCoords[1]+dx*(z+ddx)/z, | this.point2.moveTo([this.midpoint.coords.usrCoords[1]+dx*(z+ddx)/z, | ||

− | this.midpoint.coords.usrCoords[2]+dy*(z+ddy)/z] | + | this.midpoint.coords.usrCoords[2]+dy*(z+ddy)/z]); |

}; | }; | ||

Line 63: | Line 63: | ||

*/ | */ | ||

this.point2.moveTo([this.midpoint.coords.usrCoords[1]+dx*(z-ddx)/z, | this.point2.moveTo([this.midpoint.coords.usrCoords[1]+dx*(z-ddx)/z, | ||

− | this.midpoint.coords.usrCoords[2]+dy*(z-ddy)/z] | + | this.midpoint.coords.usrCoords[2]+dy*(z-ddy)/z]); |

}; | }; | ||

} | } |

## Revision as of 16:50, 30 June 2010

A pie chart with highlight on the whole sector, enlarging labels on highlight and a gradient fill.

### JavaScript code to produce this chart

```
Soon ...
```