Stock Chart

The Stock Chart accepts all of the same display parameters found in the Combo Chart. The user need only specify Y values for any barsets, while specifying (x,y) coordinates for each line dataset.

In all cases, the user can designate the specific axes to be used for a given stock, bar or line set. That is, for each data set, the user can specify either the bottom or top, and left or right axis to be used for data mapping purposes. This allows the generation of charts in which the line set values are either consistent with the bar values (such as min/max line sets) or are best drawn using their own coordinate systems (such as a plot of trading volume vs. stock value.)

 

StockSets

	StockSets = (Name1, Color1, Width1, TicLen1),
	            (Name2, Color2, Width2, TicLen2),
	            ...;

Defines the display attributes for one or more stock data sets. The Name attribute is used if a legend is displayed.

The color attribute defines the bar color to be used for the vertical bar (hi/lo) and the horizontal ticks (open/close). A default color is taken from the ColorTable parameter if the color attribute is set to "null".

The Width attribute defines the width of the vertical bar (hi/lo) in pixels, while the TicLen attribute defines the length of the open/close tic marks in pixels. These pixel values override any StockWidth attributes for the current stock set. If either Width or TicLen is set to 0 then the StockWidth attributes are used to determine the size of the bar and tics.

 

StockAnimationStyle

	StockAnimationStyle = GROW | FADE | NONE;

Specifies how the stock series (high, low, open, close) initially appear in a Stock chart. This parameter is only valid in SVG or SVGWeb output formats. Note: Stockcharts may also contain bar series and line series that can be animated with BarAnimationStyle and LineAnimationStyle.

   example: StockAnimationStyle = GROW;

GROW

The stock series data start as a straight line at 0 and each point bends to its actual value.

FADE The stock series fade in.
NONE The stock series are immediately visible.

 

StockAxis

	StockAxis = (XAxis1, YAxis1), (XAxis2, YAxis2),...;

The XAxis and YAxis attributes define the specific axis to be used when mapping the X and Y values respectively. The XAxis attribute may be set to BOTTOM or TOP, while the YAxis may be set to LEFT or RIGHT.

 

StockData[1–50]

	StockData[1–50] = (stock tuple1), (stock tuple2),...;

Defines a list of stock values with the following attributes in each tuple:

high Highest stock value. (Number)
low Lowest stock value. (Number)
open Opening stock value. (Number)
close Closing stock value. (Number)

If the <high> value is "null", then no stock symbol will be displayed for this entry. If the <low> value is not defined, then the <high> value will be used. If the <open> or <close> values are not defined, then no tic mark will be drawn for that value.

 

StockColorTable[1-50]

	StockColorTableN = color1, color2, ...;

Defines a set of colors for dataset N that overrides all other color specifications for that set. The parameters used for specifying the color of stock points in a chart are (in ascending order of precedence) ColorTable, StockSets, StockFillPattern and StockColorTable. StockColorTableN is used most frequently to color some specific point. For example:

		  	StockColorTable2 = ,,blue;
		  
will change the third point in the second series to blue, while all other points in the chart continue to be colored by one of the other color related parameters.

 

 

StockLabels[1–50]

	StockLabels[1–50] = ("Label1", "URL1", "Target1"),...;

This parameter can be used to override the default active labels generated for each data value and/or to specify a hyper-link to another document, in a given target window or frame.

 

StockWidth

	StockWidth = (barWidth, ticWidth);

This parameter specifies the relative size of each bar and tic mark used when displaying stock values. The barWidth and ticWidth attributes are interpreted as percentages, which should be in the range 0.0-1.0 or 1-100. If 100 percent is specified for the barWidth, it will occupy all of the space allocated for each stock symbol (leaving no room for the tic marks). If the ticWidth is set to 0, then the tic will fill up the remaining space not used by the bar. The default barWidth is 33% and the ticWidth is 0.

barWidth Width of the bars.
ticWidth Width of the tics.

 

GraphType


GraphType = type;

Defines the type of graph to be displayed. The following types are supported:

GROUP Datasets are grouped together. (default)
ROWS Datasets are displayed in separate rows.
STACK Datasets are stacked.

 

GraphLayout


	GraphLayout = type;

Defines the bargraph orientation. The following types are supported:

HORIZONTAL Bars are oriented left to right.
VERTICAL Bars are oriented bottom to top. (default)

Note that the BarLabels resource will be displayed on the left axis for HORIZONTAL bargraphs and the bottom axis for VERTICAL bargraphs.

 

DataSets


DataSets = (Name1, Color1, Type1), (Name2, Color2, Type2) ...;

Defines a list of datasets with the given name color and type. The names will be used as items in the Legend, and the color will be used for each bar in the dataset.

The following bar types are supported:

  • BAR
  • TRIANGLEBAR
  • DIAMONDBAR
  • CYLINDER
  • PIEVERTICAL
  • PIEHORIZONTAL

Note that some types may produce unusual results if the graph type is STACK or ROWS. If one of the "Pie" types is selected, the alternate pie color will be extracted from the first element of the ColorTable.

At most 50 datasets may be displayed.

If a color is not specified in the vector, then the previously specified color will be used. If the color is specified as "null", then a default color will be chosen from the color table. (See the ColorTable parameter.) Furthermore, if only a single data set is defined and no color value is assigned (or null is assigned) then EVERY bar in that data set will be given a different default color, depending on its position.

 

DataAxis


	DataAxis = (XAxis1, YAxis1), (XAxis2, YAxis2), ...;

The XAxis and YAxis attributes define the specific axis to be used when mapping the X and Y values respectively for each data set defined. The XAxis attribute may be set to BOTTOM or TOP, while the YAxis may be set to LEFT or RIGHT.

 

DataSet[1–50]


	DataSet[1–50] = Number1, Number2, ...;

Defines a list of numeric values for each dataset defined by the DataSets parameter. Each dataset may contain a different number of values. If the value "null" is substituted for a Number, no bar will be drawn in that bar position.

DrawOrder


         DrawOrder = SYMBOL, ...;
          

Defines the order in which Bar, Line, LineFill and Stock options will be drawn.

 
BAR Refers to ALL bar sets.
LINE Refers to line sets to do NOT have a fill.
LINEFILL Refers to line sets which DO have a fill.
STOCK Refers to ALL stock sets.

This parameter was introduced in NetCharts 4.0.

 

BarBorder


      BarBorder = (lineType, lineWidth, lineColor);

This parameter specifies the line style to be used for the border of all bars. The following attribute values are supported:

lineType Specifies the style of the border line to be drawn, as follows:

SOLID (default), DOTTED, DASHED, DOTDASH
lineWidth The width of the line in pixels. Default width is 1.
lineColor The color of the line. Default color is black.

 

BarLabels


	BarLabels = "String1", "String2", ...;

Defines a list of labels to be displayed below each group of bars. This parameter overrides the BottomLabels parameter (for VERTICAL bars) or the LeftLabels parameter (for HORIZONTAL bars).

 

BarActiveLabels


	BarActiveLabels = ("Label1", "URL1", "Target1"),...;

The BarActiveLabels parameter specifies a list of custom active labels to be associated with each bar label. That is, these labels will be displayed whenever the mouse "dwells" over a given bar label. This can be used to provide the user with additional information about that particular bar grouping or to "drill-down" to another document. See Active Labels for a detailed explanation of active label capabilities.

The BarActiveLabels parameter overrides the BottomActiveLabels parameter (for VERTICAL bars) or the LeftActiveLabels parameter (for HORIZONTAL bars).

 

Bar3D Depth


	Bar3DDepth = Number;

Defines the "depth" of the bar in pixels. A depth of 0 draws a 2D bar.


BarWidth


	BarWidth = Number;

Defines the relative width of the bar as a percentage of available space. A smaller number results in more space between bars.

 

StackLabel


	StackLabel = type;

Defines how the default active labels should be generated for each bar in a stacked barchart. The following types are supported:

TOTAL Use the accumulated total for the label. (default)
ITEM Use the individual item value for the label.


LineSets

   LineSets = (name1, color1), (name2, color2),...;

Defines a list of line set tuples with the following attributes in each tuple:

"Name" Name assigned to this data set.
SymColor Color to be used by default for all symbols and lines associated with this line set.

By default, the Name and SymColor assigned to each data set will be used in the Legend.

At most 50 line sets may be displayed.

If a color is not specified in the vector, then the previously specified color will be used. If the color is specified as "null", then a default color will be chosen from the color table. (See the ColorTable parameter.)

 

LineAxis

   LineAxis = (XAxis1, YAxis1), (XAxis2, YAxis2), ...;

The XAxis and YAxis attributes define the specific axis to be used when mapping the X and Y values respectively for each data set defined. The XAxis attribute may be set to BOTTOM or TOP, while the YAxis may be set to LEFT or RIGHT.

 

LineSet[1–50]

   LineSet[1-50] = (x1,y1), (x2,y2), (x3,y3),...;

Defines a list of Y values for each line set defined by the LineSets parameter. Null values may be assigned and are displayed differently depending on the GraphType.

 

LineSymbol

LineSymbol = (type1, size1, style1, borderColor1, borderWidth1,
              image1,symbolColor,shadowWidth),...

This parameter specifies the symbols to be displayed for one or more line sets. That is, the first tuple defines the symbol for the first line set, and so on. The following attribute values are supported:

Type Type of symbol to be displayed, including:
NONE, CIRCLE, SQUARE, DIAMOND, CROSS,TARGET,
TRIANGLEDOWN, TRIANGLEUP, IMAGE

If NONE is specified, then no symbol is displayed. If IMAGE is specified, then the image attribute will be used to load a GIF image for the symbol.

Size Specifies the size of the symbol in pixels. This attribute is ignored for IMAGE symbols.
Style Specifies how the symbol should be drawn, including FILLED, OUTLINED, or BOTH. If FILLED is specified, the symbol is filled with the line set color. If OUTLINED is specified, only the outline is drawn, using the line set color. If BOTH is specified, then the symbol is filled with the line set color and the outline is drawn using the borderColor.
BorderColor The color used when drawing the outline of a symbol with style BOTH.
BorderWidth The width of the outline for a symbol with style OUTLINED or BOTH.
Image The URL of a GIF image file to be used as the symbol when the type attribute is set to IMAGE. Transparent images are supported (GIF89 format).
SymbolColor The color when used for drawing a symbol.
ShadowWidth The size of the shadow drawn behind the symbol. Any number other than 0 causes NetCharts to choose a shadow size based on the size of the symbol. Specifying a value of 0 suppresses the shadow.


LineStyle

   LineStyle = (type1, width1, color1, fillColor1),...

This parameter specifies the line style to be displayed for one or more line sets. That is, the first tuple defines the symbol for the first line set, and so on. The following attribute values are supported:

Type Specifies the style of the line to be drawn, as follows:

NONE, SOLID, DOTTED, DASHED, DOTDASH

If NONE is specified, then no line is drawn between the symbols in the given line set.

Width The width of the line in pixels. Default width is 1.
Color The color of the line. Default color is the color of the line set itself.
FillColor If this attribute is not "null", then the area under the lineset will be filled with the given color.
LineType
NORMAL - Normal line
FIT    - Draws a spline curve approximation
BOTH   - Draws both a normal line and a spline curve approximation

 


LineValueLabel


   LineValueLabel = ("mode", color, "font name", font size, angle, interiorAlignment);
                   

Defines the label value to be displayed near each point in a lineset.


Valid mode values are "ON" and "OFF", the default value is "ON".

   example: ("ON",black,"Helvetica",18,0);

This parameter was introduced in NetCharts 4.0.

 


LineValueLabelBox

     
   LineValueLabelBox = (color,bordertype,borderwidth);

    example:(grey,RAISED,3);      

Defines the label box to be displayed near each point in a lineset.
Values are as follows:

 Color  The color of the region. If an image attribute is also defined, this color is drawn first, followed by the image, allowing this color to show through any transparent parts of the image.
BorderType  The following border styles are supported:
NONE    - No border
BOX     - Simple Box outline
SHADOW  - Shadow border
RAISED  - Raised border
RECESS  - Recessed border
When the BOX and SHADOW styles are specified, the border color will be black. When the RAISED and RECESS styles are specified, the border color will be chosen based on the region color.
 BorderWidth  This attribute defines the width of the border in pixels.

This parameter was introduced in NetCharts 4.0.

 

LineValueLabelStyle

   LineValueLabelStyle = labelposition1,labelposition2 ..., labelpositionN;
                   

Defines where the LineValueLabel text will be justified for each point in a dataset.

    example: LineValueLableStyle = CENTER, TOP;

Available justification options for LineValueLabelStyle are:

CENTER Center of the lineset datapoint
BOTTOM Bottom of the lineset datapoint
TOP Top of the lineset datapoint
LEFT Left of the lineset datapoint
RIGHT Right of the lineset datapoint
TOP RIGHT Top Right of the lineset datapoint
BOTTOM RIGHT Bottom Right of the lineset of the lineset datapoint
TOP LEFT Top Left of the lineset datapoint
BOTTOM LEFT Bottom Left of the lineset of the lineset datapoint
NONE No line labels display

This parameter was introduced in NetCharts 4.0.

 

Line3DDepth

   Line3DDepth = depth;

If depth is greater than 1, then all line sets will be displayed as 3D lines. The max amount of space allocated to each line in the Z dimension will be "depth" pixels.

The default value is 0.

 

LineWidth

   LineWidth = percent;

This percentage value (0-100) or (0.0-1.0) determines the amount of space actually used to display 3D lines when Line3DDepth is greater than 1. If 100 percent is specified, then each line will completely fill the amount of space specified by Line3DDepth in the Z dimension. If 50 percent is specified, then each line will occupy only 50 percent of that space, which will result in a visible separation between each line set.

The default value is 100.

 

LineLabels

    LineLabels1 = ("OUTLINE", "fr22383.html", "frame1");
         

LineLabels[1-50] defines sets of sets of active label destinations for the lines in a line graph, and maps to DataSets, which must also be specified. Using this element also requires use of the ActiveClicks element. You might use this in creating active labels for a chart with multiple lines and thus datasets.

 

StackLabel

   StackLabel = type;

Defines how the default active labels should be generated for each line symbol when GraphType is STACK or PERCENT. The following types are supported:

TOTAL Use the accumulated total for the label. (default)
ITEM Use the individual item value for the label.
PERCENT Use the accumulated total for the label, displayed as a percentage of the total of all values.