Direction class derived class for Chart to implement direction charts. More...


Private Functions | |
|
| |
| private | _draw_data |
| finally get around to plotting the data for direction charts | |
| private int | _find_y_scale () |
| we use the find_y_scale methode to determine the labels of the circles and the amount of them | |
| private | _calcTickInterval (scalar dataset_min, scalar dataset_max, scalar flag_fixed_min, scalar flag_fixed_max, scalar minTicks, scalar maxTicks) |
| Calculates the ticks for direction in normalised units. | |
| private int | _draw_y_ticks () |
| draw the circles and the axes | |
| private int | _draw_x_ticks () |
| We don't need x ticks, it's all done in _draw_y_ticks. | |
| private int | _prepare_brush (scalar color, scalar type) |
| set the gdBrush object to trick GD into drawing fat lines | |
| private int | _draw_legend () |
| let them know what all the pretty colors mean | |
| private array | _find_y_range () |
| Find minimum and maximum value of y data sets. | |
Public Object Methods | |
| |
| int | set (hash opts) |
| Set all options. | |
| int | add_dataset (list data) |
| Add many datasets to the dataref. | |
Protected Object Methods | |
|
| |
| protected retval | _calcTickInterval () |
Direction class derived class for Chart to implement direction charts.
| private Chart::Direction::_calcTickInterval | ( | scalar | dataset_min, | |
| scalar | dataset_max, | |||
| scalar | flag_fixed_min, | |||
| scalar | flag_fixed_max, | |||
| scalar | minTicks, | |||
| scalar | maxTicks | |||
| ) |
Calculates the ticks for direction in normalised units.
Calculate the Interval between ticks in y direction and compare the number of ticks to the user given values min_y_ticks, max_y_ticks
| [in] | $dataset_min | Minimal value in y direction |
| [in] | $dataset_max | Maximal value in y direction |
| [in] | $flag_fixed_min | Indicator whether the dataset_min value is fixed |
| [in] | $flag_fixed_max | Indicator whether the dataset_max value is fixed |
| [in] | $minTicks | Minimal number of ticks wanted |
| [in] | $maxTicks | Maximal number of ticks wanted |
Reimplemented from Chart::Base.
| private int Chart::Direction::_draw_legend | ( | ) |
let them know what all the pretty colors mean
Overwrite corresponding function of Base
Reimplemented from Chart::Base.
| private int Chart::Direction::_draw_x_ticks | ( | ) |
We don't need x ticks, it's all done in _draw_y_ticks.
Overwrites the corresponding function in Base
Reimplemented from Chart::Base.
| private int Chart::Direction::_draw_y_ticks | ( | ) |
draw the circles and the axes
Overwrites _draw_y_ticks() of Base class
Reimplemented from Chart::Base.
| private array Chart::Direction::_find_y_range | ( | ) |
Find minimum and maximum value of y data sets.
Overwrites corresponding Base function
Reimplemented from Chart::Base.
| private int Chart::Direction::_find_y_scale | ( | ) |
we use the find_y_scale methode to determine the labels of the circles and the amount of them
This function is an overwrite to the same function found in the base class Chart::Base
Reimplemented from Chart::Base.
| private int Chart::Direction::_prepare_brush | ( | scalar | color, | |
| scalar | type | |||
| ) |
set the gdBrush object to trick GD into drawing fat lines
| $color | ||
| $type |
| int Chart::Direction::add_dataset | ( | list | data | ) |
Add many datasets to the dataref.
Graph API
Overwrite Base method
| @data | Dataset to add |
Reimplemented from Chart::Base.
| int Chart::Direction::set | ( | hash | opts | ) |
Set all options.
| [in] | %opts | Hash of options to the Chart |
main method for customizing the chart, lets users specify values for different parameters
dont check the number of points in the added datasets in a polarplot
overwrite Base method
Reimplemented from Chart::Base.
1.7.1