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:

  • bars

  • stackedbars

  • lines

  • linepoints

  • area

  • points

  • pie

  • thinbarline

  • squared

Notes

The default plot type is 'linepoints'.