graphics.hlp (Topic list)
_pg_defaultchart
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _pg_defaultchart function initializes all necessary variables
     in the chart environment for the chart type set by the <charttype>
     variable.
 
     All title fields in the environment structure are blanked. Titles
     should be set in the proper fields after calling _pg_defaultchart.
 
     The <charttype> argument can be set to one of the following five
     constants:
 
     _PG_BARCHART        _PG_PIECHART
     _PG_COLUMNCHART     _PG_SCATTERCHART
     _PG_LINECHART
 
     The <chartstyle> argument can be set to one of two constants. The
     two constants permitted depend on the type of the chart, as listed
     below:
 
     Chart Type     Chart Styles Available
 
     Pie            _PG_NOPERCENT, _PG_PERCENT
     Bar            _PG_PLAINBARS, _PG_STACKEDBARS
     Column         _PG_PLAINBARS, _PG_STACKEDBARS
     Line           _PG_POINTANDLINE, _PG_POINTONLY
     Scatter        _PG_POINTANDLINE, _PG_POINTONLY
 
     Return Value
 
     The _pg_defaultchart function returns 0 if there were no errors. A
     nonzero value indicates a failure.
                                    -♦-