Class: AlGraph::Y2Axis

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

Overview

第2Y軸クラス

Constant Summary

Constants inherited from GraphView

GraphView::ATTR_NAMES

Instance Attribute Summary

Attributes inherited from Axis

#at_interval_marks, #at_labels, #at_scale_line, #labels, #mode_label

Attributes inherited from GraphView

#data_series, #height, #width

Instance Method Summary collapse

Methods inherited from YAxis

#calc_pixcel_position

Methods inherited from Axis

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

Constructor Details

#initialize(width, height) ⇒ Y2Axis

(Y2xis) constructor

Parameters:

  • width (Integer)

  • height (Integer)

    高さ



1321
1322
1323
1324
1325
1326
# File 'lib/al_graph.rb', line 1321

def initialize(width, height)
  super

  @at_labels[:text_anchor] = 'start'
  @at_interval_marks[:grid] = false
end