graphics.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Chart Type Constants
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Constant: _PG_BARCHART, _PG_COLUMNCHART, _PG_LINECHART,
_PG_SCATTERCHART, _PG_PIECHART, _PG_PLAINBARS,
_PG_STACKEDBARS, _PG_POINTANDLINE, _PG_POINTONLY,
_PG_PERCENT, _PG_NOPERCENT
Include: <graph.h>
Context: _pg_defaultchart
Synopsis: Specify the type and style of the default chart for the
presentation-graphics routines.
The <charttype> argument of _pg_defaultchart specifies one of five
types of charts:
Chart-Type Constant Meaning
_PG_BARCHART Bar chart
_PG_COLUMNCHART Column chart
_PG_LINECHART Line chart
_PG_SCATTERCHART Scatter chart
_PG_PIECHART Pie chart
The <chartstyle> argument specifies the style of the chart. Each
of the five types of charts can appear in two different chart
styles, specified by the constants below:
Chart Type Chart Styles Available
Bar _PG_PLAINBARS, _PG_STACKEDBARS
Column _PG_PLAINBARS, _PG_STACKEDBARS
Line _PG_POINTANDLINE, _PG_POINTONLY
Scatter _PG_POINTANDLINE, _PG_POINTONLY
Pie _PG_PERCENT, _PG_NOPERCENT
For pie charts in the _PG_PERCENT format, percentages are printed
next to each slice. For bar and column charts, the styles are
applicable only when more than one series appears on the same
chart. The _PG_PLAINBARS style arranges the bars or columns for
the different series side by side, showing relative heights or
lengths. The _PG_STACKEDBARS style emphasizes relative sizes
between bars and columns.