Class SVGXYLineGraph

Description

This is the base Graph class for doing XY coordinate system based graphs in SVG.

$Id: SVGXYLineGraph.html,v 1.12 2003/08/01 01:37:47 hemna Exp $

Located in Program_Root/widgets/svg/SVGXYLineGraph.inc (line 28)

Container
   |
   --BaseWidget
      |
      --SVGGraph
         |
         --SVGXYGraph
            |
            --SVGXYPlotGraph
               |
               --SVGXYLineGraph
Variable Summary
Method Summary
void add_line (string $x_values, string $y_values, [string $color = "red"])
Container graph_data ()
void _build_line (mixed $x_data, mixed $y_data, mixed $color)
Variables
mixed $_line_colors = array() (line 35)

holds the colors for each of

the lines

Inherited Variables

Inherited from SVGXYGraph

SVGXYGraph::$_colors
SVGXYGraph::$_max_x
SVGXYGraph::$_max_y
SVGXYGraph::$_min_x
SVGXYGraph::$_min_y
SVGXYGraph::$_x_data
SVGXYGraph::$_y_data

Inherited from SVGGraph

SVGGraph::$_draw
SVGGraph::$_options

Inherited from BaseWidget

BaseWidget::$title
BaseWidget::$width

Inherited from Container

Container::$_flags
Methods
add_line (line 45)

This enables you to add another line to the graph

void add_line (string $x_values, string $y_values, [string $color = "red"])
  • string $x_values:

    - the x coordinates

  • string $y_values:

    - the y coordinates

  • string $color:

    - the color for the line

graph_data (line 58)

This function does the work of building the graph itself

Container graph_data ()

Redefinition of:
SVGXYPlotGraph::graph_data()
This function does the work of building the graph itself
_build_line (line 71)
void _build_line (mixed $x_data, mixed $y_data, mixed $color)

Inherited Methods

Inherited From SVGXYPlotGraph

SVGXYPlotGraph::SVGXYPlotGraph()
SVGXYPlotGraph::add_point()
SVGXYPlotGraph::graph_data()
SVGXYPlotGraph::_build_point()

Inherited From SVGXYGraph

SVGXYGraph::SVGXYGraph()
SVGXYGraph::add_x_values()
SVGXYGraph::add_y_values()
SVGXYGraph::get_x_position()
SVGXYGraph::get_y_position()
SVGXYGraph::set_axis_grid_points()
SVGXYGraph::set_grid_line_color()
SVGXYGraph::set_grid_line_flag()
SVGXYGraph::set_x_title()
SVGXYGraph::set_y_title()
SVGXYGraph::_add_options()
SVGXYGraph::_background()
SVGXYGraph::_build_graph()
SVGXYGraph::_build_titles()
SVGXYGraph::_build_x_axis()
SVGXYGraph::_build_y_axis()
SVGXYGraph::_prepare_data()
SVGXYGraph::_x_axis_title()
SVGXYGraph::_y_axis_title()

Inherited From SVGGraph

SVGGraph::SVGGraph()
SVGGraph::format_label()
SVGGraph::get_option()
SVGGraph::get_options()
SVGGraph::render()
SVGGraph::set_axis_font_height()
SVGGraph::set_axis_font_width()
SVGGraph::set_height()
SVGGraph::set_option()
SVGGraph::set_title()
SVGGraph::set_title_font_height()
SVGGraph::set_title_font_width()
SVGGraph::set_title_style()
SVGGraph::set_width()
SVGGraph::_build_graph()
SVGGraph::_build_title()
SVGGraph::_build_titles()
SVGGraph::_prepare_data()

Inherited From BaseWidget

BaseWidget::get_align()
BaseWidget::get_css()
BaseWidget::get_javascript()
BaseWidget::get_title()
BaseWidget::get_width()
BaseWidget::set_align()
BaseWidget::set_title()
BaseWidget::set_width()

Inherited From Container

Container::Container()
Container::add()
Container::add_reference()
Container::count_content()
Container::get_indent_flag()
Container::push()
Container::push_reference()
Container::render()
Container::reset_content()
Container::set_collapse()
Container::set_indent_flag()
Container::_set_flags()

Documention generated on Thu, 31 Jul 2003 18:33:49 -0700 by phpDocumentor 1.2.0