MindFusion.Charting for JavaScript Programmer's Guide
Graphics.drawPie Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Draws a pie.

Namespace: MindFusion.Drawing
File: Graphics.js

## Syntax

JavaScript Copy Code
function drawPie (pen, rect, radius, startAngle, endAngle, [doughnut])

### Parameters

pen

  Type: Pen
  The pen to stroke the pie with.

rect

  Type: Rect
  The bounds of the pie.

radius

  Type: Number
  The radius of the pie.

startAngle

  Type: Number
  The startAngle of the pie.

endAngle

  Type: Number
  The endAngle of the pie.

doughnut
  Optional.

  Type: Boolean
  True if the pie should be a doughnut, otherwise false.

## See Also

Graphics Members
Graphics Class
MindFusion.Drawing Namespace