• Basics
    • WContainerWidget
    • WTemplate
    • WText
    • WAnchor
    • WBreak
    • WImage
    • WGroupBox
    • WStackedWidget
    • WTable
    • WMenu
    • WTree
    • WTreeTable
    • WPanel
    • WTabWidget
    • WProgressBar
  • Form Widgets
    • WPushButton
    • WCheckBox
    • WRadioButton
    • WComboBox
    • WSelectionBox
    • WLineEdit
    • WSpinBox
    • WTextArea
    • WCalendar
    • WDatePicker
    • WInPlaceEdit
    • WSuggestionPopup
    • WTextEdit
    • WFileUpload
    • WPopupMenu
  • Form Validators
  • Ext Widgets
    • Ext::Button
    • Ext::LineEdit
    • Ext::NumberField
    • Ext::CheckBox
    • Ext::ComboBox
    • Ext::RadioButton
    • Ext::Calendar
    • Ext::DateField
    • Ext::Menu/ToolBar
    • Ext::Dialog
  • Vector Graphics
    • Emweb logo example
    • Paintbrush example
  • Special Purpose
    • WGoogleMap
    • WMediaPlayer
    • WSound
    • WVideo
    • WAudio
    • WFlashObject
  • Dialogs
    • WDialog
    • WMessageBox
    • Ext Dialogs
  • Charts
    • Category Charts
    • Scatter Plots
    • Pie Charts
  • MVC Widgets
    • The Models
    • Proxy models
    • Combobox Views
    • WTableView
    • WTreeView
    • Chart Views
  • Events
    • WKeyEvent
    • WMouseEvent
    • WDropEvent
  • Style and Layout
    • CSS
    • WLoadingIndicator
    • WBoxLayout
    • WGridLayout
    • WBorderLayout
Chart::WPieChart [doc]

Pie chart

The pie chart is provided by the WPieChart widget. A pie chart can only display data from one data series. The class supports both plain 2D pies, as well as a 3D effect (as used below). As shown below for the first segment, these may be separated from the pie to show emphasis.

Item
Sales
Blueberry
120
Cherry
30
Apple
260
Boston Cream
160
Other
40
Vanilla Cream
120
Blueberry: 16.4%
Cherry: 4.11%
Apple: 35.6%
Boston Cream: 21.9%
Other: 5.48%
Vanilla Cream: 16.4%
Events will be shown here.
Build a house
Roof included
Add a door
Add a window
Add furniture
Add a chair
Add a table