Big Faceless Graph Library 2.3 Tag Documentation - Copyright © 2006 Big Faceless Organization

candleseries

Description

The "candleseries" tag creates a series of candles, which can be used to plot stock price movement over the course of days, months or years. Each "data" tag inside a Candle series must have an "open", "close", "min" and "max" attribute specified, and "x" must be a date.

Valid Children

data+ marker* label* line*

Examples

Example: An example of a candle series
<axesgraph width="300" height="300">
  <candleseries name="MSFT">
    <axis pos="left" type="currency(us)" />
    <data x="2004-05-01" open="142.5" close="147.5" max="149.75" min="138.25" />
    <data x="2004-05-02" open="148.5" close="141.5" max="148.5" min="140" />
    <data x="2004-05-03" open="139" close="127.75" max="139.75" min="125.5" />
  </candleseries>
</axesgraph>

See Also

Attributes

barwidth Real > 0 <= 1 optional XML / Tag Library

Description

The width of a candle. A value of "1" means the candle are so wide they touch eachother, but typically a value like "0.6" would be used. The default is "0.5"
name String mandatory XML / Tag Library

Description

Every item in the graph may have a "name", which is how it appears in the Key (if listed) and for some items, how it's refered to in JavaScript. The name is required for Series and optional for other items like markers.
pos (top | bottom) (left | right) optional XML / Tag Library

Description

Which axes to plot the series against on an AxesGraph. This attribute has a default value of "bottom left", which means the series is plotted against the bottom and left axis, but other valid values would be "top left", "bottom right" or "top right".

Examples

Example: Plotting dates against the bottom axis and days of week against the top
<axesgraph width="300" height="300">
  <axis pos="bottom" type="date">
    <teeth rotate="90" align="left middle" />
  </axis>
  <axis pos="top" type="bar" />
  <lineseries pos="bottom left" name="Amount over the year">
    <data x="2003-01-01" y="20" />
    ...
    <data x="2003-12-31" y="17" />
  </lineseries>
  <barseries pos="top left" name="Average amount per weekday">
    <data x="Sun" y="18" />
    ...
    <data x="Sat" y="21" />
  </barseries>
</axesgraph>
color Paint optional XML / Tag Library

Description

The paint to use as the fill color for the specified object
bordercolor Color optional XML / Tag Library

Description

The color to use as the border color for the specified object. May be "none" to not draw a border for this object.
linethickness Real > 0 optional XML / Tag Library

Description

The thickness to draw the borders for this object, except for lineseries and functionseries objects when the graph is being drawn in 2D, in which case this attribute, as you would expect, sets the thickness of the lines.
Big Faceless Graph Library 2.3 Tag Documentation - Copyright © 2006 Big Faceless Organization