| Class | PDF::Charts::StdDev::Scale |
| In: |
lib/pdf/charts/stddev.rb
|
| Parent: | Object |
The scale of the dataset.
| 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. |
# File lib/pdf/charts/stddev.rb, line 51
51: def initialize(args = { })
52: @range = args[:range]
53: @step = args[:step]
54: @style = args[:style]
55: @show_labels = false
56:
57: yield self if block_given?
58:
59: raise TypeError, PDF::Lange[:charts_stddev_scale_norange] if @range.nil?
60: raise TypeError, PDF::Lange[:charts_stddev_scale_nostep] if @step.nil?
61: end