SetPlotType
Prev | PHPlot Function Reference | Next

## SetPlotType

SetPlotType — Select the type of plot - how the data will be graphed

## Synopsis

    $plot->SetPlotType($pt)

## Description

`SetPlotType` selects a type of plot from among the plot types supported by PHPlot. This includes bar charts, line plots, point plots, and others. A complete description of the type of plots available can be found in Section 3.4, “PHPlot Plot Types”.

## Parameters

`$pt`

  A string indicating the type of plot. The following types are available:

  - area

  - bars

  - linepoints

  - lines

  - pie

  - points

  - squared

  - stackedarea

  - stackedbars

  - thinbarline

## Notes

The default plot type is 'linepoints'.

## History

Plot type 'stackedarea' was added in PHPlot-5.1.1.

Prev | Up | Next
SetPlotBorderType | Home | SetPointShapes