| line | % | coverage | condition |
| 101 | 100 | | Params::Get::get_params(undef, \@_) || {} |
| 140 | 100 | | $params->{'responsive'} || 0 |
| 100 | | $params->{'width'} || 800 |
| 100 | | $params->{'height'} || 600 |
| 100 | | $params->{'title'} || 'Chart' |
| 694 | 100 | | $opts //= {} |
| 699 | 100 | | $opts->{'separator'} // "/" |
| 850 | 100 | | $opts //= {} |
| 855 | 100 | | $opts->{'separator'} // "/" |
| 1037 | 100 | | $opts //= {} |
| 1043 | 100 | | $opts->{'sort_slices'} // "none" |
| 1044 | 100 | | $opts->{'max_slices'} // 0 |
| 1046 | 100 | | $opts->{'color_scheme'} // "tableau10" |
| 1047 | 100 | | $opts->{'separator'} // "/" |
| 1052 | 50 | | $pt->[1] // 0 |
| 1067 | 67 | | $max_slices >= 2 and scalar @slices > $max_slices |
| 1078 | 100 | | $opts->{'id'} // "pie_chart" |
| 1085 | 33 | | $opts->{'responsive'} // $self->{'responsive'} |
| 1097 | 67 | | $animated && $show_legend |
| 1383 | 100 | | $opts //= {} |
| 1396 | 100 | | $opts->{'color_scheme'} // "YlOrRd" |
| 1402 | 100 | | $cell_padding >= 0 and $cell_padding <= 8 |
| 1405 | 100 | | $opts->{'x_label'} // "" |
| 1406 | 100 | | $opts->{'y_label'} // "" |
| 1407 | 100 | | $opts->{'val_label'} // "Value" |
| 1435 | 100 | | $opts->{'id'} // "heatmap" |
| 1441 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 1744 | 100 | | $opts //= {} |
| 1748 | 100 | | $opts->{'orientation'} // "vertical" |
| 1749 | 100 | | $orientation eq "vertical" or $orientation eq "horizontal" |
| 1752 | 100 | | $opts->{'sort_bars'} // "none" |
| 1756 | 100 | | $opts->{'max_bars'} // 0 |
| 1757 | 100 | | $opts->{'color'} // "steelblue" |
| 1760 | 100 | | $opts->{'value_label'} // "Value" |
| 1761 | 100 | | $opts->{'x_label'} // "" |
| 1772 | 67 | | scalar @$pt >= 3 && ref $pt->[2] eq 'HASH' |
| 1788 | 67 | | $max_bars and scalar @bars > $max_bars |
| 1817 | 100 | | $opts->{'id'} // "bar_chart" |
| 1823 | 100 | | $opts->{'responsive'} // $self->{'responsive'} |
| 1827 | 100 | | $orientation eq 'vertical' && scalar @bars > 8 |
| 2322 | 100 | | $opts //= {} |
| 2334 | 100 | | $opts->{'id'} // "chart" |
| 2339 | 33 | | $opts->{'responsive'} // $self->{'responsive'} |
| 2491 | 100 | | $opts //= {} |
| 2503 | 100 | | $opts->{'id'} // "chart" |
| 2509 | 33 | | $opts->{'responsive'} // $self->{'responsive'} |
| 3558 | 100 | | $opts //= {} |
| 3563 | 100 | | ref $s eq "HASH" and defined $s->{'name'} and ref $s->{'data'} eq "ARRAY" |
| 3568 | 100 | | $opts->{'scheme'} // "tableau10" |
| 3569 | 100 | | $opts->{'x_label'} // "" |
| 3570 | 100 | | $opts->{'y_label'} // "" |
| 3571 | 100 | | $opts->{'animated'} // 0 |
| 3572 | 100 | | $opts->{'id'} // "chart" |
| 3590 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 3854 | 100 | | $opts //= {} |
| 3858 | 50 | | $opts->{'color'} // "steelblue" |
| 3859 | 100 | | $opts->{'x_label'} // "" |
| 3860 | 100 | | $opts->{'y_label'} // "" |
| 3861 | 50 | | $opts->{'value_label'} // "Value" |
| 3862 | 100 | | $opts->{'animated'} // 0 |
| 3863 | 100 | | $opts->{'colour_by_series'} // 0 |
| 3864 | 100 | | $opts->{'scheme'} // "tableau10" |
| 3865 | 100 | | $opts->{'series_col'} // "" |
| 3866 | 100 | | $opts->{'size_col'} // "" |
| 3867 | 100 | | $opts->{'radius_range'} // [3, 15] |
| 3891 | 100 | | defined $pt->[3]{'size'} and &looks_like_number($pt->[3]{'size'}) |
| 3901 | 67 | | defined $p->{'series'} and not $seen_series{$p->{'series'}}++ |
| 3905 | 67 | | not defined $size_min or $p->{'size'} < $size_min |
| 3906 | 67 | | not defined $size_max or $p->{'size'} > $size_max |
| 3910 | 100 | | $colour_by_series && @series_names |
| 3918 | 100 | | $series_col || 'Series' |
| 3919 | 100 | | $size_col || 'Size' |
| 3922 | 67 | | $is_categorical || $has_series |
| 3924 | 100 | | $opts->{'id'} // "scatter_chart" |
| 3934 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 3955 | 50 | | $radius_range->[0] // 3 |
| 3956 | 50 | | $radius_range->[1] // 15 |
| 3959 | 67 | | $has_size and defined $size_min |
| 4016 | 100 | | $series_col || 'Series' |
| 4019 | 50 | | $size_col || 'Size' |
| 4197 | 100 | | $opts //= {} |
| 4204 | 100 | | $opts->{'caption'} // "" |
| 4205 | 100 | | $opts->{'id'} // "data_table" |
| 4217 | 100 | | shift() // "" |
| 4404 | 100 | | $opts //= {} |
| 4408 | 50 | | $opts->{'cat_col'} // "cat" |
| 4409 | 50 | | $opts->{'seg_col'} // "seg" |
| 4410 | 50 | | $opts->{'val_col'} // "val" |
| 4411 | 100 | | $opts->{'orient'} // "v" |
| 4412 | 100 | | $opts->{'scheme'} // "tableau10" |
| 4413 | 100 | | $opts->{'x_label'} // "" |
| 4416 | 100 | | $orient eq "v" or $orient eq "h" |
| 4418 | 100 | | defined $sort_by and $sort_by ne "value" and $sort_by ne "label" |
| 4424 | 50 | | $row->{$val_col} // "x" |
| 4425 | 50 | | $row->{$seg_col} // "" |
| 50 | | $row->{$cat_col} // "" |
| 4428 | 50 | | $pivot{$cat}{$seg} // 0 |
| 4434 | 67 | | defined $sort_by and $sort_by eq "value" |
| 100 | | defined $sort_by and $sort_by eq "label" |
| 4439 | 50 | | $pivot{$a}{$_} // 0 |
| 4440 | 50 | | $pivot{$b}{$_} // 0 |
| 4448 | 50 | | $pivot{$cat}{$_} // 0 |
| 4463 | 100 | | $opts->{'id'} // "stacked_bar" |
| 4468 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 4693 | 100 | | $opts //= {} |
| 4697 | 100 | | $opts->{'x_col'} // "x" |
| 4698 | 100 | | $opts->{'bar_col'} // "bar_val" |
| 4699 | 100 | | $opts->{'line_col'} // "line_val" |
| 4700 | 100 | | $opts->{'bar_label'} // "Bar" |
| 4701 | 100 | | $opts->{'line_label'} // "Line" |
| 4702 | 100 | | $opts->{'bar_color'} // "steelblue" |
| 4703 | 100 | | $opts->{'line_color'} // "#e15759" |
| 4708 | 50 | | $row->{$bar_col} // "x" |
| 4709 | 50 | | $row->{$line_col} // "x" |
| 4731 | 100 | | $opts->{'id'} // "combo_chart" |
| 4736 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 4943 | 100 | | $opts //= {} |
| 4945 | 100 | | ref $data eq "ARRAY" or ref $data eq "HASH" |
| 4948 | 100 | | $opts->{'path_sep'} // "/" |
| 4949 | 100 | | $opts->{'scheme'} // "tableau10" |
| 4965 | 50 | | $row->{'value'} // "x" |
| 5002 | 100 | | $opts->{'id'} // "treemap" |
| 5007 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 5207 | 100 | | defined $b->{'count'} and &looks_like_number($b->{'count'}) |
| 5210 | 67 | | defined $b->{'lo'} && &looks_like_number($b->{'lo'}) |
| 5211 | 67 | | defined $b->{'hi'} && &looks_like_number($b->{'hi'}) |
| 5214 | 67 | | defined $label and length $label |
| 5215 | 100 | | defined $lo and defined $hi |
| 5225 | 100 | | $opts->{'x_label'} // "" |
| 5226 | 100 | | $opts->{'id'} // "histogram" |
| 5231 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 5331 | 100 | | $opts //= {} |
| 5342 | 75 | | &looks_like_number($bins_opt) and $bins_opt == int $bins_opt and $bins_opt >= 1 |
| 5348 | 50 | | $v // "x" |
| 5361 | 100 | | $opts->{'x_label'} // "" |
| 5362 | 100 | | $opts->{'color'} // "steelblue" |
| 5367 | 100 | | $opts->{'id'} // "histogram" |
| 5372 | 67 | | $opts->{'responsive'} // $self->{'responsive'} |
| 5498 | 0 | | $opts->{'responsive'} // $self->{'responsive'} |