[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DRAW BAR CHART AT

Description:
This command displays a bar chart at the specified row/column coordinates.
The chart is based on a database file that can be optionally filtered.
For alternating bar patterns and colors, enter the PATTERN and COLOR
options respectively.

Syntax:
DRAW BAR CHART AT <Pos1>,<Pos2> USING <dbf> PLOT <field>
   [LABEL <field>]
   [WIDTH <width>]
   [HEIGHT <height>]
   [DIVISION <value>]
   [FILTER <filter>]
   [SOLID]
   [DOTTED]
   [DASHED]
   [BOX]
   [PATTERN]
   [COLOR <color>]
   [3D]
   [HORIZONTAL]

Arguments:
<Pos1> is the row screen coordinate for the lower left corner of the
  chart.
<Pos2> is the column screen coordinate for the lower left corner of the
  chart.
<dbf> is the database file to be used as the source of data.
[PLOT <field>] is the field to plot.
[LABEL <field>] is the field to display on the X axes.
[WIDTH <width>] is the width of the chart.  The default is established as
  a preprocessor constant in GLLIBR.CH with a value of ???.
[HEIGHT <height>] is the height of the chart.  The default is established
  as a preprocessor constant in GLLIBR.CH with a value of ???.
[DIVISION <value>] is the Y axes value for determining where labels and
  grid lines will be placed.
[SOLID] invokes solid Y axes grid lines at the division marks.
[DOTTED] invokes dotted Y axes grid lines at the division marks.
[DASHED] invokes dashed Y axes grid lines at the division marks.
[BOX] draws a box around the chart area.
<filter> is the filter statement that isolates the data for the chart.
[PATTERN] alternates bar patterns.
[COLOR <color>]  establishes the bar colors.
[3D] displays the bars in three dimensional mode.
[HORIZONTAL] displays the bars in horizontal format.

Example:
DRAW BAR CHART AT 14,23 USING SAMPLE.DBF; // display a bar chart
   PLOT DIV_INCOME/100 ;                  // select the field to plot
   LABLE DIVISION                         // select field for X axes
   FILTER RECNO()<=16 ;                   // set the filter
   COLOR BLUE;                            // display blue color bars
   3D ;                                   // display in 3d mode
   HEIGHT 8 ;                             // height of 8 rows
   WIDTH 40 ;                             // width of 40 chrs
   DIVISION 5000 ;                        // Y axes divisions
   DOTTED ;                               // dotted Y grid lines
   BOX                                    // box the chart

         Purpose: Display a bar chart
 Mapped Function: __DrawBarChart() contained in GLLIBR.PRG.
   dGE functions: datastore(),bargraph(),datareset()
   Other GL UDFs: None.
System variables: None.
System constants: None.

See Also:

See Also: __DrawBarChart()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson