<--previous | contents | next-->

# High-Low-Close Graphs

HLC | HLC3D

High-Low-Close graphs are commonly used do depict stock-market price movements - "high" indicates the highest value reached during a period of trading, "low" the lowest, and "close" the value at close of markets.

## Data Format

The HLC .setData() method accepts an arbitrary number of lists of the form [high, low, close], where each element is a list of values. To draw a single HLC graph, we might invoke .setData() as follows:

`

    x.setData(
                (
                    [40, 100, 80, 30, 50],
                    [0, 60, 70, 0, 10],
                    [10, 95, 75, 25, 20]
                )
            )

`

... and for multiple sets we might do the following (spaced to make things clearer):

`

    x.setData(
                (
                    [40, 100, 80, 30, 50],
                    [0, 60, 70, 0, 10],
                    [10, 95, 75, 25, 20]
                ),
                (
                    [20, 30, 40, 50, 60],
                    [0, 10, 20, 30, 40],
                    [10, 20, 30, 40, 50]
                )
            )

`

## Options

There are a number of special options associated with HLC graphs.

### hlc_style

This option affects the drawing style of HLC graphs. It should be a list, containing one or more of the following strings "DIAMOND", "CLOSE_CONNECTED", "CONNECTING", "I_CAP".

### hlc_cap_width

The width of the HLC cap. This is a percentage, i.e. it should be an integer between 0 and 100.

<--previous | contents | next--> | (12/31/03)

PyGDChart User's Manual