📄 report-bar.png.tmpl
字号:
#------------------------------------------------------------------------# Compiled template generated by the Template Toolkit version 2.13#------------------------------------------------------------------------Template::Document->new({ METADATA => { 'modtime' => '1057267924', 'name' => 'reports/report-bar.png.tmpl', }, BLOCK => sub { my $context = shift || die "template sub called without context\n"; my $stash = $context->stash; my $output = ''; my $error; eval { BLOCK: { $output .= "\n"; $output .= "\n"; #line 23 "template\en\default\reports\report-bar.png.tmpl" $output .= $context->process('global/variables.none.tmpl'); $output .= "\n"; #line 0 "template\en\default\reports\report-bar.png.tmpl" $stash->set('y_label', ('' . $stash->get(['terms', 0, 'Bugs', 0]))); $output .= "\n"; #line 29 "template\en\default\reports\report-bar.png.tmpl" $output .= $context->process('global/field-descs.none.tmpl'); $output .= "\n"; #line 32 "template\en\default\reports\report-bar.png.tmpl" $stash->set('col_field_disp', $stash->get(['field_descs', 0, $stash->get('col_field'), 0]) || $stash->get('col_field')); $output .= "\n"; #line 35 "template\en\default\reports\report-bar.png.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('null') || $context->throw($context->error); #line 35 "template\en\default\reports\report-bar.png.tmpl" # USE $stash->set('graph', $context->plugin('GD.Graph.bars', [ $stash->get('width'), $stash->get('height') ])); #line 35 "template\en\default\reports\report-bar.png.tmpl" $output .= $stash->get(['graph', 0, 'set', [ { 'x_label' => $stash->get('col_field_disp'), 'y_label' => $stash->get('y_label'), 'y_tick_number' => 8, 'y_number_format' => '%d', 'x_label_position' => 0.5, 'x_labels_vertical' => $stash->get('x_labels_vertical'), 'bar_spacing' => 8, 'shadow_depth' => 4, 'shadowclr' => 'dred', 'show_values' => 1, 'legend_placement' => 'RT' } ]]); #line 35 "template\en\default\reports\report-bar.png.tmpl" if ($stash->get('cumulate')) { $output .= $stash->get(['graph', 0, 'set', [ { 'cumulate' => 'true', 'show_values' => 0 } ]]); } #line 35 "template\en\default\reports\report-bar.png.tmpl" $output .= $stash->get(['graph', 0, 'set_legend', [ $stash->get(['row_names', 0, 0, 0]), $stash->get(['row_names', 0, 1, 0]), $stash->get(['row_names', 0, 2, 0]), $stash->get(['row_names', 0, 3, 0]), $stash->get(['row_names', 0, 4, 0]), $stash->get(['row_names', 0, 5, 0]), $stash->get(['row_names', 0, 6, 0]), $stash->get(['row_names', 0, 7, 0]), $stash->get(['row_names', 0, 8, 0]), $stash->get(['row_names', 0, 9, 0]), $stash->get(['row_names', 0, 10, 0]), $stash->get(['row_names', 0, 11, 0]), $stash->get(['row_names', 0, 12, 0]), $stash->get(['row_names', 0, 13, 0]), $stash->get(['row_names', 0, 14, 0]), $stash->get(['row_names', 0, 15, 0]) ]]); #line 35 "template\en\default\reports\report-bar.png.tmpl" # FILTER $output .= do { my $output = ''; my $filter = $context->filter('stdout', [ 1 ]) || $context->throw($context->error); $output .= $stash->get(['graph', 0, 'plot', [ $stash->get(['data', 0, 0, 0]) ], 'png', 0]); &$filter($output); }; &$filter($output); }; } }; if ($@) { $error = $context->catch($@, \$output); die $error unless $error->type eq 'return'; } return $output; }, DEFBLOCKS => { },});
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -