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

segment

Description

The "segment" tag is used inside a "dialseries" to add a colored segment to the dial.

Examples

Example: A simple semicircular dialgraph
<dialgraph width="300" height="300">
  <segment startangle="-90" endangle="90" inner="0" outer="100" color="green" />
  <needle angle="30" />
</dialgraph>
Example: Containing two layers of segments
<dialgraph width="300" height="300">
  <segment startangle="-90" endangle="90" inner="0" outer="90" color="green" />
  <segment startangle="-90" endangle="0" inner="90" outer="100" color="black" />
  <segment startangle="0" endangle="90" inner="90" outer="100" color="gray" />
  <needle angle="30" />
</dialgraph>

Attributes

startangle Real mandatory XML / Tag Library

Description

The angle of the start of the segment
endangle Real mandatory XML / Tag Library

Description

The angle of the end of the segment
inner Real >= 0 mandatory XML / Tag Library

Description

The distance from the center of the graph to the inside of the segment. A value of 0 means the segment starts at the center, and higher values result in thinner strips. Must be less than "outer"
outer Real >= 0 mandatory XML / Tag Library

Description

The distance from the center of the graph to the outside of the segment. A value of 0 means the segment starts at the center, and higher values result in thinner strips. Greater than "inner", we recommend values in the range 0 to 100.
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.
dash Real[] optional XML / Tag Library

Description

The dashing pattern to use to draw the borders for this object (for 2D lineseries this functions the same as the linethickness attribute). An even number of parameters that are > 0 must be specified, where the first in each pair is the length of the dash, the second is the length of the space. Examples would be dash="5,5" to create a regular dash pattern, or dash="6,2,2,2" to create a dash/dot type pattern.
Big Faceless Graph Library 2.3 Tag Documentation - Copyright © 2006 Big Faceless Organization