Class: AlGraph::Y2Axis

Inherits:
YAxis show all
Defined in:
lib/al_graph.rb

Overview

第2Y軸クラス

Constant Summary

Constant Summary

Constants inherited from GraphBase

GraphBase::ATTR_NAMES, GraphBase::ATTR_UNITS

Instance Attribute Summary

Attributes inherited from Axis

#at_interval_marks, #at_labels, #at_scale_line, #labels

Attributes inherited from GraphBase

#height, #output, #width

Instance Method Summary (collapse)

Methods inherited from YAxis

#calc_pixcel_position, #do_scaling

Methods inherited from Axis

#add_grid, #clear_grid, #clear_interval_marks, #clear_labels, #clear_scale_line, #max, #min, #reverse, #set_interval, #set_labels, #set_max, #set_min

Constructor Details

- (Y2Axis) initialize(width, height, output)

constructor

Parameters:

  • width (Integer)

  • height (Integer)

    高さ

  • output (GraphOutput)

    出力制御オブジェクト



605
606
607
608
609
# File 'lib/al_graph.rb', line 605

def initialize(width, height, output)
  super
  @at_labels[:text_anchor] = 'start'
  @at_interval_marks[:grid] = false
end