$dash = HTML::Dashboard->new(); $dash->set_data_without_captions( $data ); print $dash->as_HTML(); |
|
$dash = HTML::Dashboard->new(); $dash->set_data_without_captions( $data ); $dash->set_first_row( '#f0fff0' ); $dash->set_odd_row( '#fffacd' ); $dash->set_even_row( style => 'font-style: italic' ); $dash->set_last_row( '#e0ffff' ); print $dash->as_HTML(); |
|
$dash = HTML::Dashboard->new(); $dash->set_data_without_captions( $data ); $dash->set_even_col( '#bfefff' ); $dash->set_last_col( style => 'font-size: xx-small; color: red' ); print $dash->as_HTML(); |
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_cell_low( 3, sub { my ( $x ) = @_; $x < 4 }, 'lime' );
$dash->set_cell_med( 3, sub { my ( $x ) = @_; $x >=4 }, 'yellow' );
$dash->set_cell_hi( 3, sub { my ( $x ) = @_; $x > 7 },
style => 'background-color: red; font-weight: bold' );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_row_low( sub { my ( $r ) = @_; $r->[1]%3 || $r->[3]>4 }, 'lime' );
$dash->set_row_hi( sub { my ( $r ) = @_; $r->[3]>7 }, 'red' );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_col_low( 1, sub { my ( $x ) = @_; $x < 4 }, 'lime' );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_row_hi( sub { $_[0]->[1] % 2 == 1 }, style => 'color: red' );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_row_low( sub { $_[0]->[1]%2 }, 'lime' );
$dash->set_col_med( 1, sub { $_[0] == 8 }, 'yellow' );
$dash->set_cell_hi( 1, sub { $_[0]>=4 && $_[0]<5 }, 'red' );
$dash->set_cell_hi( 3, sub { $_[0]>4 && $_[0]<5 }, 'red' );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new(); $dash->set_data_without_captions( $data ); $dash->set_captions( 'First Col', 'A Number', 'String', 'Some Float', 'Name' ); print $dash->as_HTML(); |
|
$dash = HTML::Dashboard->new(); $dash->set_data_without_captions( $data ); $dash->set_view( 4, 1, 3 ); print $dash->as_HTML(); |
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_sort( sub { my ( $x, $y ) = @_; $x->[3] <=> $y->[3] } );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_sort( sub { my ( $x, $y ) = @_;
$x->[4] cmp $y->[4] || $y->[1] <=> $x->[1] } );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_format( 3, sub { my ( $x ) = @_; sprintf( "%.1f", $x ) } );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new();
$dash->set_data_without_captions( $data );
$dash->set_view( 1, 2, 3, 4 );
$dash->set_collate( 1, sub { my ( @r ) = @_; $r[0] . '-' . $r[1] } );
print $dash->as_HTML();
|
|
$dash = HTML::Dashboard->new(); $dash->set_data_without_captions( $data ); $dash->set_pagesize( 5 ); $dash->set_captions( 'First Col', 'A Number', 'String', 'Some Float', 'Name' ); $dash->set_table( style => 'margin-bottom: 1em' ); print $dash->as_HTML( 0 ); print $dash->as_HTML( 1 ); |
|