Yahoo! UI Library

Charts Widget  2.6.0

Yahoo! UI Library > charts > YAHOO.widget.PieChart

Class YAHOO.widget.PieChart - uses YAHOO.widget.Chart

PieChart class for the YUI Charts widget.

Constructor

YAHOO.widget.PieChart ( containerId , dataSource , attributes )
Parameters:
containerId <HTMLElement> Container element for the Flash Player instance.
dataSource <YAHOO.util.DataSource> DataSource instance.
attributes <object> (optional) Object literal of configuration values.

Properties inherited from YAHOO.util.AttributeProvider:

Methods

Events

beforeCategoryFieldChange

beforeCategoryFieldChange ( event )
Fires before the value for the configuration attribute 'categoryField' changes. Return false to cancel the attribute change.
Parameters:
event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

beforeDataFieldChange

beforeDataFieldChange ( event )
Fires before the value for the configuration attribute 'dataField' changes. Return false to cancel the attribute change.
Parameters:
event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

categoryFieldChange

categoryFieldChange ( event )
Fires when the value for the configuration attribute 'categoryField' changes.
Parameters:
event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

dataFieldChange

dataFieldChange ( event )
Fires when the value for the configuration attribute 'dataField' changes.
Parameters:
event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

Configuration Attributes

categoryField - String

The field in each item that corresponds to the category value.

dataField - String

The field in each item that corresponds to the data value.

Configuration attributes inherited from YAHOO.widget.Chart:

Configuration attributes inherited from YAHOO.widget.FlashAdapter:


Copyright © 2008 Yahoo! Inc. All rights reserved.