Class SVGXYPlotGraph

Description

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

$Id: SVGXYPlotGraph.html 3543 2011-01-28 14:07:31Z mpwalsh8 $

Located in /widgets/svg/SVGXYPlotGraph.inc (line 28)

Container
   |
   --BaseWidget
      |
      --SVGGraph
         |
         --SVGXYGraph
            |
            --SVGXYPlotGraph
Direct descendents
Class Description
SVGXYLineGraph This is the base Graph class for doing XY coordinate system based graphs in SVG.
Method Summary
SVGXYPlotGraph SVGXYPlotGraph ( $title,  $width,  $height)
void add_point (string $x, string $y, [string $color = "red"])
Container graph_data ()
void _build_point ( $x,  $y,  $color)
Variables
Methods
Constructor SVGXYPlotGraph (line 30)
SVGXYPlotGraph SVGXYPlotGraph ( $title,  $width,  $height)
  • $title
  • $width
  • $height
add_point (line 52)

This enables you to add another line to the graph

void add_point (string $x, string $y, [string $color = "red"])
  • string $x: - the x coordinates
  • string $y: - the y coordinates
  • string $color: - the color for the line
graph_data (line 65)

This function does the work of building the graph itself

Container graph_data ()

Redefined in descendants as:
_build_point (line 79)
void _build_point ( $x,  $y,  $color)
  • $x
  • $y
  • $color

Inherited Methods

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_image_path_prefix()
BaseWidget::set_title()
BaseWidget::set_width()

Inherited From Container

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

Documentation generated on Fri, 28 Jan 2011 08:53:23 -0500 by phpDocumentor 1.4.3