Class: Graph (SVG::Graph)

Overview
Module Structure
Class Hierarchy
Constants
Graph::KEY_BOX_SIZE
Instance Attributes
Graph#height [RW]
Graph#width [RW]
Graph#style_sheet [RW]
Graph#show_data_values [RW]
Graph#min_scale_value [RW]
Graph#show_x_labels [RW]
Graph#stagger_x_labels [RW]
Graph#stagger_y_labels [RW]
Graph#rotate_x_labels [RW]
Graph#rotate_y_labels [RW]
Graph#step_x_labels [RW]
Graph#step_include_first_x_label [RW]
Graph#show_y_labels [RW]
Graph#scale_integers [RW]
Graph#scale_divisions [RW]
Graph#show_x_title [RW]
Graph#x_title [RW]
Graph#show_y_title [RW]
Graph#y_title_text_direction [RW]
Graph#y_title [RW]
Graph#show_graph_title [RW]
Graph#graph_title [RW]
Graph#show_graph_subtitle [RW]
Graph#graph_subtitle [RW]
Graph#key [RW]
Graph#key_position [RW]
Graph#font_size [RW]
Graph#x_label_font_size [RW]
Graph#x_title_font_size [RW]
Graph#y_label_font_size [RW]
Graph#y_title_font_size [RW]
Graph#title_font_size [RW]
Graph#subtitle_font_size [RW]
Graph#key_font_size [RW]
Graph#show_x_guidelines [RW]
Graph#show_y_guidelines [RW]
Graph#no_css [RW]
Graph#add_popups [RW]
Graph#top_align [RW]
Graph#top_font [RW]
Graph#right_align [RW]
Graph#right_font [RW]
Instance Methods
Graph#initialize / 1
Graph#add_data
Graph#clear_data
Graph#burn
Graph#sort / 1
Graph#init_with
Graph#calculate_left_margin
Graph#max_y_label_width_px
Graph#calculate_right_margin
Graph#calculate_top_margin
Graph#add_popup / 3
Graph#calculate_bottom_margin
Graph#draw_graph
Graph#x_label_offset / 1
Graph#make_datapoint_text / 4
Graph#draw_x_labels
Graph#y_label_offset / 1
Graph#field_width
Graph#field_height
Graph#draw_y_labels
Graph#draw_x_guidelines / 2
Graph#draw_y_guidelines / 2
Graph#draw_titles
Graph#keys
Graph#draw_legend
Graph#sort_multiple / 3
Graph#partition / 3
Graph#style
Graph#parse_css
Graph#add_defs
Graph#start_svg
Graph#calculate_graph_dimensions
Graph#get_style
is a submodule of
module: Graph ( SVG )
includes
  REXML   
inherits from
  Object ( Builtin-Module )
is inherited by
  BarBase ( SVG::Graph )
  Line ( SVG::Graph )
  Pie ( SVG::Graph )
  Plot ( SVG::Graph )
  Schedule ( SVG::Graph )
has properties
method: initialize / 1   
method: add_data   
method: clear_data   
method: burn   
attribute: height [RW]   
attribute: width [RW]   
attribute: style_sheet [RW]   
attribute: show_data_values [RW]   
attribute: min_scale_value [RW]   
attribute: show_x_labels [RW]   
attribute: stagger_x_labels [RW]   
attribute: stagger_y_labels [RW]   
attribute: rotate_x_labels [RW]   
attribute: rotate_y_labels [RW]   
attribute: step_x_labels [RW]   
attribute: step_include_first_x_label [RW]   
attribute: show_y_labels [RW]   
attribute: scale_integers [RW]   
attribute: scale_divisions [RW]   
attribute: show_x_title [RW]   
attribute: x_title [RW]   
attribute: show_y_title [RW]   
attribute: y_title_text_direction [RW]   
attribute: y_title [RW]   
attribute: show_graph_title [RW]   
attribute: graph_title [RW]   
attribute: show_graph_subtitle [RW]   
attribute: graph_subtitle [RW]   
attribute: key [RW]   
attribute: key_position [RW]   
attribute: font_size [RW]   
attribute: x_label_font_size [RW]   
attribute: x_title_font_size [RW]   
attribute: y_label_font_size [RW]   
attribute: y_title_font_size [RW]   
attribute: title_font_size [RW]   
attribute: subtitle_font_size [RW]   
attribute: key_font_size [RW]   
attribute: show_x_guidelines [RW]   
attribute: show_y_guidelines [RW]   
attribute: no_css [RW]   
attribute: add_popups [RW]   
method: sort / 1   
method: init_with   
attribute: top_align [RW]   
attribute: top_font [RW]   
attribute: right_align [RW]   
attribute: right_font [RW]   
constant: KEY_BOX_SIZE   
method: calculate_left_margin   
method: max_y_label_width_px   
method: calculate_right_margin   
method: calculate_top_margin   
method: add_popup / 3   
method: calculate_bottom_margin   
method: draw_graph   
method: x_label_offset / 1   
method: make_datapoint_text / 4   
method: draw_x_labels   
method: y_label_offset / 1   
method: field_width   
method: field_height   
method: draw_y_labels   
method: draw_x_guidelines / 2   
method: draw_y_guidelines / 2   
method: draw_titles   
method: keys   
method: draw_legend   
method: sort_multiple / 3   
method: partition / 3   
method: style   
method: parse_css   
method: add_defs   
method: start_svg   
method: calculate_graph_dimensions   
method: get_style   
is defined at
#61 in lib/SVG/Graph/Graph.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: <Built-in Module>
  module: REXML
  module: SVG
  module: Graph
class: BarBase     
class: Graph     
class: Line     
class: Pie     
class: Plot     
class: Schedule     

Class Hierarchy

Object ( Builtin-Module )
Graph ( SVG::Graph )
includes
  REXML   
has properties
method: initialize / 1   
method: add_data   
method: clear_data   
method: burn   
attribute: height [RW]   
attribute: width [RW]   
attribute: style_sheet [RW]   
attribute: show_data_values [RW]   
attribute: min_scale_value [RW]   
attribute: show_x_labels [RW]   
attribute: stagger_x_labels [RW]   
attribute: stagger_y_labels [RW]   
attribute: rotate_x_labels [RW]   
attribute: rotate_y_labels [RW]   
attribute: step_x_labels [RW]   
attribute: step_include_first_x_label [RW]   
attribute: show_y_labels [RW]   
attribute: scale_integers [RW]   
attribute: scale_divisions [RW]   
attribute: show_x_title [RW]   
attribute: x_title [RW]   
attribute: show_y_title [RW]   
attribute: y_title_text_direction [RW]   
attribute: y_title [RW]   
attribute: show_graph_title [RW]   
attribute: graph_title [RW]   
attribute: show_graph_subtitle [RW]   
attribute: graph_subtitle [RW]   
attribute: key [RW]   
attribute: key_position [RW]   
attribute: font_size [RW]   
attribute: x_label_font_size [RW]   
attribute: x_title_font_size [RW]   
attribute: y_label_font_size [RW]   
attribute: y_title_font_size [RW]   
attribute: title_font_size [RW]   
attribute: subtitle_font_size [RW]   
attribute: key_font_size [RW]   
attribute: show_x_guidelines [RW]   
attribute: show_y_guidelines [RW]   
attribute: no_css [RW]   
attribute: add_popups [RW]   
method: sort / 1   
method: init_with   
attribute: top_align [RW]   
attribute: top_font [RW]   
attribute: right_align [RW]   
attribute: right_font [RW]   
constant: KEY_BOX_SIZE   
method: calculate_left_margin   
method: max_y_label_width_px   
method: calculate_right_margin   
method: calculate_top_margin   
method: add_popup / 3   
method: calculate_bottom_margin   
method: draw_graph   
method: x_label_offset / 1   
method: make_datapoint_text / 4   
method: draw_x_labels   
method: y_label_offset / 1   
method: field_width   
method: field_height   
method: draw_y_labels   
method: draw_x_guidelines / 2   
method: draw_y_guidelines / 2   
method: draw_titles   
method: keys   
method: draw_legend   
method: sort_multiple / 3   
method: partition / 3   
method: style   
method: parse_css   
method: add_defs   
method: start_svg   
method: calculate_graph_dimensions   
method: get_style   
  BarBase     
  Line     
  Pie     
  Plot     
  Schedule     

Constants

Graph::KEY_BOX_SIZE

#364 in lib/SVG/Graph/Graph.rb

KEY_BOX_SIZE = 12   

Instance Attributes

Graph#height [RW]

#232 in lib/SVG/Graph/Graph.rb

Graph#width [RW]

#236 in lib/SVG/Graph/Graph.rb

Graph#style_sheet [RW]

#243 in lib/SVG/Graph/Graph.rb

Graph#show_data_values [RW]

#245 in lib/SVG/Graph/Graph.rb

Graph#min_scale_value [RW]

#248 in lib/SVG/Graph/Graph.rb

Graph#show_x_labels [RW]

#251 in lib/SVG/Graph/Graph.rb

Graph#stagger_x_labels [RW]

#255 in lib/SVG/Graph/Graph.rb

Graph#stagger_y_labels [RW]

#259 in lib/SVG/Graph/Graph.rb

Graph#rotate_x_labels [RW]

#262 in lib/SVG/Graph/Graph.rb

Graph#rotate_y_labels [RW]

#265 in lib/SVG/Graph/Graph.rb

Graph#step_x_labels [RW]

#271 in lib/SVG/Graph/Graph.rb

Graph#step_include_first_x_label [RW]

#276 in lib/SVG/Graph/Graph.rb

Graph#show_y_labels [RW]

#279 in lib/SVG/Graph/Graph.rb

Graph#scale_integers [RW]

#283 in lib/SVG/Graph/Graph.rb

Graph#scale_divisions [RW]

#289 in lib/SVG/Graph/Graph.rb

Graph#show_x_title [RW]

#292 in lib/SVG/Graph/Graph.rb

Graph#x_title [RW]

#294 in lib/SVG/Graph/Graph.rb

Graph#show_y_title [RW]

#297 in lib/SVG/Graph/Graph.rb

Graph#y_title_text_direction [RW]

#301 in lib/SVG/Graph/Graph.rb

Graph#y_title [RW]

#303 in lib/SVG/Graph/Graph.rb

Graph#show_graph_title [RW]

#306 in lib/SVG/Graph/Graph.rb

Graph#graph_title [RW]

#308 in lib/SVG/Graph/Graph.rb

Graph#show_graph_subtitle [RW]

#311 in lib/SVG/Graph/Graph.rb

Graph#graph_subtitle [RW]

#313 in lib/SVG/Graph/Graph.rb

Graph#key [RW]

#316 in lib/SVG/Graph/Graph.rb

Graph#key_position [RW]

#319 in lib/SVG/Graph/Graph.rb

Graph#font_size [RW]

#321 in lib/SVG/Graph/Graph.rb

Graph#x_label_font_size [RW]

#323 in lib/SVG/Graph/Graph.rb

Graph#x_title_font_size [RW]

#325 in lib/SVG/Graph/Graph.rb

Graph#y_label_font_size [RW]

#327 in lib/SVG/Graph/Graph.rb

Graph#y_title_font_size [RW]

#329 in lib/SVG/Graph/Graph.rb

Graph#title_font_size [RW]

#331 in lib/SVG/Graph/Graph.rb

Graph#subtitle_font_size [RW]

#333 in lib/SVG/Graph/Graph.rb

Graph#key_font_size [RW]

#335 in lib/SVG/Graph/Graph.rb

Graph#show_x_guidelines [RW]

#337 in lib/SVG/Graph/Graph.rb

Graph#show_y_guidelines [RW]

#339 in lib/SVG/Graph/Graph.rb

Graph#no_css [RW]

#343 in lib/SVG/Graph/Graph.rb

Graph#add_popups [RW]

#345 in lib/SVG/Graph/Graph.rb

Graph#top_align [RW]

#362 in lib/SVG/Graph/Graph.rb

Graph#top_font [RW]

#362 in lib/SVG/Graph/Graph.rb

Graph#right_align [RW]

#362 in lib/SVG/Graph/Graph.rb

Graph#right_font [RW]

#362 in lib/SVG/Graph/Graph.rb

Instance Methods

Graph#initialize / 1

#101 in lib/SVG/Graph/Graph.rb

initialize ( config )

Graph#add_data

#168 in lib/SVG/Graph/Graph.rb

add_data

Graph#clear_data

#183 in lib/SVG/Graph/Graph.rb

clear_data

Graph#burn

#195 in lib/SVG/Graph/Graph.rb

burn

Graph#sort / 1

#350 in lib/SVG/Graph/Graph.rb

sort ( *arrys )

Graph#init_with

#356 in lib/SVG/Graph/Graph.rb

init_with

Graph#calculate_left_margin

#368 in lib/SVG/Graph/Graph.rb

calculate_left_margin

Graph#max_y_label_width_px

#384 in lib/SVG/Graph/Graph.rb

max_y_label_width_px

Graph#calculate_right_margin

#391 in lib/SVG/Graph/Graph.rb

calculate_right_margin

Graph#calculate_top_margin

#404 in lib/SVG/Graph/Graph.rb

calculate_top_margin

Graph#add_popup / 3

#413 in lib/SVG/Graph/Graph.rb

add_popup ( x ,
  y ,
  label )

Graph#calculate_bottom_margin

#442 in lib/SVG/Graph/Graph.rb

calculate_bottom_margin

Graph#draw_graph

#462 in lib/SVG/Graph/Graph.rb

draw_graph

Graph#x_label_offset / 1

#495 in lib/SVG/Graph/Graph.rb

x_label_offset ( width )

Graph#make_datapoint_text / 4

#499 in lib/SVG/Graph/Graph.rb

make_datapoint_text ( x ,
  y ,
  value ,
  style="" )

Graph#draw_x_labels

#519 in lib/SVG/Graph/Graph.rb

draw_x_labels

Graph#y_label_offset / 1

#570 in lib/SVG/Graph/Graph.rb

y_label_offset ( height )

Graph#field_width

#575 in lib/SVG/Graph/Graph.rb

field_width

Graph#field_height

#581 in lib/SVG/Graph/Graph.rb

field_height

Graph#draw_y_labels

#588 in lib/SVG/Graph/Graph.rb

draw_y_labels

Graph#draw_x_guidelines / 2

#630 in lib/SVG/Graph/Graph.rb

draw_x_guidelines ( label_height ,
  count )

Graph#draw_y_guidelines / 2

#641 in lib/SVG/Graph/Graph.rb

draw_y_guidelines ( label_height ,
  count )

Graph#draw_titles

#652 in lib/SVG/Graph/Graph.rb

draw_titles

Graph#keys

#705 in lib/SVG/Graph/Graph.rb

keys

Graph#draw_legend

#710 in lib/SVG/Graph/Graph.rb

draw_legend

Graph#sort_multiple / 3

#758 in lib/SVG/Graph/Graph.rb

sort_multiple ( arrys ,
  lo=0 ,
  hi=arrys[0].length-1 )

Graph#partition / 3

#767 in lib/SVG/Graph/Graph.rb

partition ( arrys ,
  lo ,
  hi )

Graph#style

#782 in lib/SVG/Graph/Graph.rb

style

Graph#parse_css

#794 in lib/SVG/Graph/Graph.rb

parse_css

Graph#add_defs

#822 in lib/SVG/Graph/Graph.rb

add_defs

Graph#start_svg

#826 in lib/SVG/Graph/Graph.rb

start_svg

Graph#calculate_graph_dimensions

#871 in lib/SVG/Graph/Graph.rb

calculate_graph_dimensions

Graph#get_style

#880 in lib/SVG/Graph/Graph.rb

get_style