# Yahoo! UI Library

### Charts Widget 2.5.0

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

Show Private Show Protected

## Class YAHOO.widget.BarChart - uses YAHOO.widget.CartesianChart

BarChart class for the YUI Charts widget.

### Constructor

YAHOO.widget.BarChart `( 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.

#### Methods inherited from YAHOO.widget.CartesianChart:

`_getXField, _getYField, _initAttributes, _setXAxis, _setXField, _setYAxis, _setYField`

#### Events inherited from YAHOO.widget.CartesianChart:

`beforeXaxisChange, beforeXfieldChange, beforeYaxisChange, beforeYfieldChange xAxisChange xFieldChange yAxisChange yFieldChange`

#### Configuration attributes inherited from YAHOO.widget.CartesianChart:

`xAxis, xField, yAxis, yField`

Copyright © 2007 Yahoo! Inc. All rights reserved.