◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── 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 In a pie chart, the pieces are "exploded" according to the <explode> array argument in the _pg_chartpie function. In the "percent" format, percentages are printed next to each slice. Bar and column charts have only one style when displaying a single series of data. The styles "side by side" and "stacked" are applicable only when more than one series appears on the same chart. The first style arranges the bars or columns for the different series side by side, showing relative heights or lengths. The stacked style emphasizes relative sizes between bars and columns. Return Value The _pg_defaultchart function returns 0 if there were no errors. A nonzero value indicates a failure. -♦-