class 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 = { }) { |self| ... }
click to toggle source
# File lib/pdf/charts/stddev.rb 52 def initialize(args = { }) 53 @range = args[:range] 54 @step = args[:step] 55 @style = args[:style] 56 @show_labels = false 57 58 yield self if block_given? 59 60 raise TypeError, PDF::Lange[:charts_stddev_scale_norange] if @range.nil? 61 raise TypeError, PDF::Lange[:charts_stddev_scale_nostep] if @step.nil? 62 end