Parent

Methods

PDF::Charts::StdDev::Scale

The scale of the dataset.

Attributes

first[RW]

The lower end of the range of the scale. The scale range may be modified by changing this value.

label[RW]

Defines the label options.

last[RW]

The upper end of the range of the scale. The scale range may be modified by changing this value.

range[RW]

Range of the scale. This should be a Range object.

show_labels[RW]

Shows the scale labels if true.

step[RW]

Defines the step of the scale. Each step represents a vertical position on the chart.

style[RW]

Defines the line style for the scale on the chart. If this is unset (nil), there will be no horizontal marks across the chart for the steps of the scale.

Public Class Methods

new(args = { }) click to toggle source
# File lib/pdf/charts/stddev.rb, line 51
def initialize(args = { })
  @range        = args[:range]
  @step         = args[:step]
  @style        = args[:style]
  @show_labels  = false

  yield self if block_given?

  raise TypeError, PDF::Lange[:charts_stddev_scale_norange] if @range.nil?
  raise TypeError, PDF::Lange[:charts_stddev_scale_nostep] if @step.nil?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.