Chart
view release on metacpan or search on metacpan
lib/Chart/Base.pm view on Meta::CPAN
# default to "normal" x_tick drawing
$self->{'x_ticks'} = 'normal';
# we're not a component until Chart::Composite says we are
$self->{'component'} = 'false';
# don't force the y-axes in a Composite chare to be the same
$self->{'same_y_axes'} = 'false';
# plot rectangeles in the legend instead of lines in a composite chart
$self->{'legend_example_height'} = 'false';
# don't force integer y-ticks
$self->{'integer_ticks_only'} = 'false';
# don't forbid a false zero scale.
$self->{'include_zero'} = 'false';
# don't waste time/memory by storing imagemap info unless they ask
$self->{'imagemap'} = 'false';
# default for grid_lines is off
$self->{grid_lines} = 'false',
$self->{x_grid_lines} = 'false',
$self->{y_grid_lines} = 'false',
$self->{y2_grid_lines} = 'false';
# default for no_cache is false. (it breaks netscape 4.5)
$self->{no_cache} = 'false';
# default value for skip_y_ticks for the labels
$self->{skip_y_ticks} = 1;
# default value for skip_int_ticks only for integer_ticks_only
$self->{skip_int_ticks} = 1;
# default value for precision
$self->{precision} = 3;
# default value for legend label values in pie charts
$self->{legend_label_values} = 'value';
# default value for the labels in a pie chart
$self->{label_values} = 'percent';
# default position for the y-axes
$self->{y_axes} = 'left';
# copies of the current values at the x-ticks function
$self->{temp_x_min} = 0;
$self->{temp_x_max} = 0;
$self->{temp_y_min} = 0;
$self->{temp_y_max} = 0;
# Instance for a sum
$self->{sum} = 0;
# Don't sort the data unless they ask
$self->{'sort'} = 'false';
# The Interval for drawing the x-axes in the split module
$self->{'interval'} = undef;
# The start value for the split chart
$self->{'start'} = undef;
# How many ticks do i have to draw at the x-axes in one interval of a split-plot?
$self->{'interval_ticks'} = 6;
# Draw the Lines in the split-chart normal
$self->{'scale'} = 1;
# Make a x-y plot
$self->{'xy_plot'} = 'false';
# min and max for xy plot
$self->{'x_min_val'} = 1;
$self->{'x_max_val'} = 1;
# use the same error value in ErrorBars
$self->{'same_error'} = 'false';
# Set the minimum and maximum number of circles to draw in a direction chart
$self->{'min_circles'} = 4, $self->{'max_circles'} = 100;
# set the style of a direction diagramm
$self->{'point'} = 'true', $self->{'line'} = 'false', $self->{'arrow'} = 'false';
# The number of angel axes in a direction Chart
$self->{'angle_interval'} = 30;
# dont use different 'x_axes' in a direction Chart
$self->{'pairs'} = 'false';
# polarplot for a direction Chart (not yet tested)
$self->{'polar'} = 'false';
# guiding lines in a Pie Chart
$self->{'legend_lines'} = 'false';
# Ring Chart instead of Pie
$self->{'ring'} = 1; # width of ring; i.e. normal pie
# stepline for Lines, LinesPoints
$self->{'stepline'} = 'false';
$self->{'stepline_mode'} = 'end'; # begin, end
# used function to transform x- and y-tick labels to strings
$self->{f_x_tick} = \&_default_f_tick, $self->{f_y_tick} = \&_default_f_tick, $self->{f_z_tick} = \&_default_f_tick;
# default color specs for various color roles.
# Subclasses should extend as needed.
my $d = 0;
$self->{'colors_default_spec'} = {
background => 'white',
misc => 'black',
text => 'black',
y_label => 'black',
y_label2 => 'black',
grid_lines => 'black',
grey_background => 'gray90',
( run in 0.303 second using v1.01-cache-2.11-cpan-71847e10f99 )