Class YAHOO.widget.CartesianChart
- uses
YAHOO.widget.Chart
CartesianChart class for the YUI Charts widget.
Constructor
YAHOO.widget.CartesianChart
(
type
,
containerId
,
dataSource
,
attributes
)
- Parameters:
-
type
<String>
The char type. May be "line", "column", or "bar"
-
containerId
<HTMLElement>
Container element for the Flash Player instance.
-
dataSource
<YAHOO.util.DataSource>
DataSource instance.
-
attributes
<object>
(optional) Object literal of configuration values.
Properties
Stores a reference to the xAxis labelFunction created by
YAHOO.widget.Chart.createProxyFunction()
Stores a reference to the yAxis labelFunctions created by
YAHOO.widget.Chart.createProxyFunction()
_attributes,
_containerID,
_dataSource,
_dataTipFunction,
_id,
_initialized,
_legendLabelFunction,
_pollingID,
_pollingInterval,
_request,
_seriesDefs,
_seriesFunctions,
_swf,
_swfEmbed,
_swfURL,
_type
Methods
private
void
_getClonedAxis
(
)
Receives an axis object, creates a proxy function for
the labelFunction and returns the updated object.
private
void
_getXField
(
)
Getter for the xField attribute.
private
void
_getYField
(
)
Getter for the yField attribute.
private
void
_initAttributes
(
)
Initializes the attributes.
private
void
_removeAxisFunctions
(
)
Removes axis functions contained in an array
private
void
_setConstrainViewport
(
)
Setter for the constrainViewport attribute
private
void
_setXAxes
(
)
Setter for the xAxes attribute
private
void
_setXAxis
(
)
Setter for the xAxis attribute.
private
void
_setXField
(
)
Setter for the xField attribute.
private
void
_setYAxes
(
)
Setter for the yAxes attribute.
private
void
_setYAxis
(
)
Setter for the yAxis attribute.
private
void
_setYField
(
)
Setter for the yField attribute.
void
setSeriesStylesByIndex
(
index
,
style
)
Sets the style object for a single series based on its index
- Parameters:
-
index
<Number>
The position within the series definition to apply the style
-
style
<object>
Style object to be applied to the selected series
_eventHandler,
_getAltText,
_getCategoryNames,
_getDataSource,
_getLegendLabelFunction,
_getPolling,
_getRequest,
_getSeriesDefs,
_getSWFURL,
_initAttributes,
_loadDataHandler,
_loadHandler,
_setAltText,
_setCategoryNames,
_setDataSource,
_setDataTipFunction,
_setLegendLabelFunction,
_setPolling,
_setRequest,
_setSeriesDefs,
refreshData,
setSeriesStyles,
setStyle,
setStyles,
toString
configureAttribute,
fireBeforeChangeEvent,
fireChangeEvent,
get,
getAttributeConfig,
getAttributeKeys,
refresh,
register,
resetAttributeConfig,
resetValue,
set,
setAttributeConfig,
setAttributes
Events
beforeConstrainViewportChange
(
event
)
Fires before the value for the configuration attribute 'constrainViewport' 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.
beforeXAxesChange
(
event
)
Fires before the value for the configuration attribute 'xAxes' 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.
beforeXAxisChange
(
event
)
Fires before the value for the configuration attribute 'xAxis' 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.
beforeXFieldChange
(
event
)
Fires before the value for the configuration attribute 'xField' 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.
beforeYAxesChange
(
event
)
Fires before the value for the configuration attribute 'yAxes' 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.
beforeYAxisChange
(
event
)
Fires before the value for the configuration attribute 'yAxis' 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.
beforeYFieldChange
(
event
)
Fires before the value for the configuration attribute 'yField' 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.
constrainViewportChange
(
event
)
Fires when the value for the configuration attribute 'constrainViewport' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
xAxesChange
(
event
)
Fires when the value for the configuration attribute 'xAxes' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
xAxisChange
(
event
)
Fires when the value for the configuration attribute 'xAxis' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
xFieldChange
(
event
)
Fires when the value for the configuration attribute 'xField' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
yAxesChange
(
event
)
Fires when the value for the configuration attribute 'yAxes' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
yAxisChange
(
event
)
Fires when the value for the configuration attribute 'yAxis' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
yFieldChange
(
event
)
Fires when the value for the configuration attribute 'yField' changes.
- Parameters:
-
event
<{oldValue: any, newValue: any}>
An object containing the previous attribute value and the new value.
altTextChange,
backgroundColorChange,
beforeAltTextChange,
beforeBackgroundColorChange,
beforeCategoryNamesChange,
beforeDataSourceChange,
beforeDataTipFunctionChange,
beforeExpressInstallChange,
beforeLegendLabelFunctionChange,
beforePollingChange,
beforeRequestChange,
beforeSeriesChange,
beforeSwfURLChange
beforeVersionChange
beforeWmodeChange
categoryNamesChange
contentReady
dataSourceChange
dataTipFunctionChange
expressInstallChange
itemClickEvent
itemDoubleClickEvent
itemDragEndEvent
itemDragEvent
itemDragStartEvent
itemMouseOutEvent
itemMouseOverEvent
legendLabelFunctionChange
pollingChange
requestChange
seriesChange
swfURLChange
versionChange
wmodeChange
Configuration Attributes
Determines whether the viewport is constrained to prevent series data from overflow.
Custom configurations for the horizontal x axes.
A custom configuration for the horizontal x axis.
The field in each item that corresponds to a value on the x axis.
Custom configurations for the vertical y axes.
A custom configuration for the vertical y axis.
The field in each item that corresponds to a value on the x axis.