AlignDB-ToXLSX
view release on metacpan or search on metacpan
lib/AlignDB/ToXLSX.pm view on Meta::CPAN
# [ $sheetname, $row_start, $row_end, $col_start, $col_end ]
# #"=$sheetname" . '!$A$2:$A$7',
for my $y_col ( $y_column .. $y_last_column ) {
$chart->add_series(
categories => [ $sheet_name, $first_row, $last_row, $x_column, $x_column ],
values => [ $sheet_name, $first_row, $last_row, $y_col, $y_col ],
);
}
$chart->set_size( width => $width, height => $height );
# Remove title and legend
$chart->set_title( none => 1 );
$chart->set_legend( none => 1 );
# Blank data is shown as a gap
$chart->show_blanks_as('gap');
# set axis
$chart->set_x_axis(
name => $self->_replace_text( $opt->{x_title} ),
name_font => { name => $font_name, size => $font_size, },
num_font => { name => $font_name, size => $font_size, },
line => { color => 'black', },
lib/AlignDB/ToXLSX.pm view on Meta::CPAN
# second Y axis
$chart->add_series(
categories => [ $sheet_name, $first_row, $last_row, $x_column, $x_column ],
values => [ $sheet_name, $first_row, $last_row, $y2_column, $y2_column ],
marker => { type => 'square', size => 6, fill => { color => 'white', }, },
y2_axis => 1,
);
$chart->set_size( width => $width, height => $height );
# Remove title and legend
$chart->set_title( none => 1 );
$chart->set_legend( none => 1 );
# Blank data is shown as a gap
$chart->show_blanks_as('gap');
# set axis
$chart->set_x_axis(
name => $self->_replace_text( $opt->{x_title} ),
name_font => { name => $font_name, size => $font_size, },
num_font => { name => $font_name, size => $font_size, },
line => { color => 'black', },
lib/AlignDB/ToXLSX.pm view on Meta::CPAN
$add_trend
? ( trendline => {
type => 'linear',
name => 'Linear Trend',
}
)
: (),
);
$chart->set_size( width => $width, height => $height );
# Remove title and legend
$chart->set_title( none => 1 );
$chart->set_legend( none => 1 );
# Blank data is shown as a gap
$chart->show_blanks_as('gap');
# set axis
$chart->set_x_axis(
name => $self->_replace_text( $opt->{x_title} ),
name_font => { name => $font_name, size => $font_size, },
num_font => { name => $font_name, size => $font_size, },
line => { color => 'black', },
lib/AlignDB/ToXLSX.pm view on Meta::CPAN
# [ $sheetname, $row_start, $row_end, $col_start, $col_end ]
# #"=$sheetname" . '!$A$2:$A$7',
for my $y_col ( $y_column .. $y_last_column ) {
$chart->add_series(
categories => [ $sheet_name, $first_row, $last_row, $x_column, $x_column ],
values => [ $sheet_name, $first_row, $last_row, $y_col, $y_col ],
);
}
$chart->set_size( width => $width, height => $height );
# Remove title and legend
$chart->set_title( none => 1 );
$chart->set_legend( none => 1 );
# Blank data is shown as a gap
$chart->show_blanks_as('gap');
# set axis
$chart->set_x_axis(
name => $self->_replace_text( $opt->{x_title} ),
name_font => { name => $font_name, size => $font_size, },
num_font => { name => $font_name, size => $font_size, },
line => { color => 'black', },
( run in 0.950 second using v1.01-cache-2.11-cpan-49f99fa48dc )