Skip to content

class Line

Oliver edited this page Apr 26, 2020 · 3 revisions

www/includes/graph.inc.php


Line

Copyright (C) 2003 Ashish Kasturia (ashish at 123ashish.com)

The Line Graph generator is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Package

zorg\Vendor See also

author

  • [z]cylander

version

  • 2.0

since

  • 1.0 [z]cylander File added
  • 1.5 [z]cylander zorg customizing
  • 2.0 IneX Fixed __construct, added Jahreszahlen

Overview

Public Properties

axesCol() | barCol() | bgCol() | dataSeriesLabels() | dataValues() | dataXLabels() | dataXLabels2() | height() | image() | title() | titleCol() | width() |

Constants

No constants found

Public Methods

__construct() | AddValue() | InitializeColors() | SetAxesColor() | SetBarColor() | SetBGColor() | SetBGGifImage() | SetBGJPEGImage() | SetBGPngImage() | SetDimensions() | SetSeriesLabels() | SetTitle() | SetTitleColor() | spit() |

Properties

axesCol

public $axesCol

barCol

public $barCol

bgCol

public $bgCol

dataSeriesLabels

public $dataSeriesLabels

dataValues

public $dataValues

dataXLabels

public $dataXLabels

dataXLabels2

public $dataXLabels2

height

public $height

image

public $image

title

public $title

titleCol

public $titleCol

width

public $width

Methods

__construct()

public __construct(mixed $imgWidth = 600, mixed $imgHeight = 300) : mixed

Tags
  • version: 2.0
  • since: 1.0 ashish Original Method
  • since: 2.0 09.12.2019 IneX Fixed Class constructor from "function Line()" => __construct(), added option to pass imgage width & height

AddValue()

public AddValue(mixed $xVal, mixed $yVal, mixed $xVal2) : mixed

InitializeColors()

public InitializeColors() : mixed

SetAxesColor()

public SetAxesColor(mixed $bgR, mixed $bgG, mixed $bgB) : mixed

SetBarColor()

public SetBarColor(mixed $bgR, mixed $bgG, mixed $bgB) : mixed

SetBGColor()

public SetBGColor(mixed $bgR, mixed $bgG, mixed $bgB) : mixed

SetBGGifImage()

public SetBGGifImage(mixed $file) : mixed

SetBGJPEGImage()

public SetBGJPEGImage(mixed $file) : mixed

SetBGPngImage()

public SetBGPngImage(mixed $file) : mixed

SetDimensions()

public SetDimensions(mixed $width, mixed $height) : mixed

SetSeriesLabels()

public SetSeriesLabels(mixed $labels) : mixed

SetTitle()

public SetTitle(mixed $title) : mixed

SetTitleColor()

public SetTitleColor(mixed $bgR, mixed $bgG, mixed $bgB) : mixed

spit()

Spit out the graph

public spit(mixed $type) : mixed

Tags
  • version: 3.0
  • since: 1.0 ashish Original Method
  • since: 2.0 [z]cylander zorg customizing, disabled some defaults
  • since: 2.5 [z]cylander added option for 2nd x-axis label bar (Jahreszahlen)
  • since: 3.0 09.12.2019 IneX Enabled 2nd x-axis label by [z]cylander, some Styling improvement

\ » Classes » Line

Clone this wiki locally