Stock Charts - OHLC

Introduction

An OHLC chart is a stock chart showing open, high, low, and close values for a stock. The data must consists of 2 to 4 columns grouped together. These columns can be:

The order of the columns is important.

Data Model

Mandatory channels: 2 to 4 value channels grouped together

Optional channels: label.

Attributes

Due to their special outlook, stock charts do not support all the series attributes available. The following attributes can be used:

(*) Color and paint can alter depending on the values of "Open" and "Close". If pointColor is a palette, then the first palette color is used in cases when "Close"-value is greater than or equal to "Open"-value. The second palette color is used when "Close"-value is smaller than "Open"-value. Default color is black.

Examples

Data example.

  <data>
   <group type="value">
    <column id="o" values="25 27 60 51" />
    <column id="h" values="30 70 70 80" />
    <column id="l" values="20 20 40 40" />
    <column id="c" values="26 55 55 75" /> 
   </group>
   <column type="label" values="Mon Tue Wed Thu" />
  </data>

OHLC that shows waning close values with red.

See also

Candlestick Chart can represent similar data.