Class: LineGraph (0.1)

Class to create line graphs.
Credits to: Jeph

Variables

array LineGraph::line_bgcolor
array LineGraph::line_color

Methods

LineGraph::AddLineBackgroundColor ( $red , $green , $blue )
LineGraph::AddLineColor ( $red , $green , $blue )
LineGraph::DrawGraph ( $file )
LineGraph::SetLineBackgroundColor ( $red , $green , $blue )
LineGraph::SetLineColor ( $red , $green , $blue )

LineGraph::line_bgcolor ^ Top | ^ Variables | ^ Methods
Line background color (not important when deepness = 0)

  Type:
        Array(int, int, int)

  Default:
        Array(39, 78, 120)


LineGraph::line_color ^ Top | ^ Variables | ^ Methods
Line color (both line_color and line_bgcolor can be arrays of arrays of red, green and blue colors, when drawing more than one line)

  Type:
        Array(int, int, int)

  Default:
        Array(39, 78, 120)


LineGraph::AddLineBackgroundColor() ^ Top | ^ Variables | ^ Methods
Add one more line backgorund color (RGB)

  Arguments:
        ( int ) $red
        ( int ) $green
        ( int ) $blue


LineGraph::AddLineColor() ^ Top | ^ Variables | ^ Methods
Add one more line color (RGB)

  Arguments:
        ( int ) $red
        ( int ) $green
        ( int ) $blue


LineGraph::DrawGraph() ^ Top | ^ Variables | ^ Methods
Draw graph
If no file given, output will be stdout

  Arguments:
        ( int ) $file

  Default:
       $file = ""


LineGraph::SetLineBackgroundColor() ^ Top | ^ Variables | ^ Methods
Set line background color (RGB)

  Arguments:
        ( int ) $red
        ( int ) $green
        ( int ) $blue


LineGraph::SetLineColor() ^ Top | ^ Variables | ^ Methods
Set line color (RGB)

  Arguments:
        ( int ) $red
        ( int ) $green
        ( int ) $blue