# Yahoo! UI Library

### Charts Widget 2.5.1

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

Show Private Show Protected

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

LineChart class for the YUI Charts widget.

### Constructor

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