Chart-Clicker

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN


2.31
  - Fix slight miscalculation in X position of "negative" bar renderer
    bars.
  - Simplify bar width calculation when using fudged axis ranges.

2.30
  - Fix misnamed class in POD for Marker (Thanks bricas!)
  - Fix error in example/simple.pl
  - Fix completely busted Marker implementation (fix colors & range positioning)
  - Add lazily constructed marker_overlay attribute to Clicker
  - Document Marker properly

2.29
  - Fix broken bar_padding computation in Bar renderer
  - Skip some math when no ticks are visible in an Axis

2.28
  - Fix problems in dist due to quoting

2.27

MANIFEST  view on Meta::CPAN

t/basic.t
t/context.t
t/data-dataset.t
t/data-marker.t
t/data-range.t
t/datetime.t
t/decoration-color_allocator.t
t/decoration-glass.t
t/decoration-grid.t
t/decoration-legend.t
t/decoration-markeroverlay.t
t/decoration-plot.t
t/decoration.t
t/drawing-colorallocator.t
t/example.t
t/invisible.t
t/renderer-area.t
t/renderer-bar.t
t/renderer-base.t
t/renderer-bubble.t
t/renderer-candlestick.t

README.mkdn  view on Meta::CPAN


## legend

Set/Get the [legend](https://metacpan.org/pod/Chart::Clicker::Decoration::Legend) that will be used with this chart.

## legend\_position

The position the legend will be added.  Should be one of north, south, east,
west or center as required by [Layout::Manager::Compass](https://metacpan.org/pod/Layout::Manager::Compass).

## marker\_overlay

Set/Get the [marker overlay](https://metacpan.org/pod/Chart::Clicker::Decoration::MarkerOverlay) object that will be used if this chart
has markers.  This is lazily constructed to save time.

## over\_decorations

Set/Get an arrayref of "over decorations", or things that are drawn OVER the
chart.  This is an advanced feature.  See `overaxis-bar.pl` in the examples.

## padding

Set/Get the [padding](https://metacpan.org/pod/Graphics::Primitive::Insets). Defaults

lib/Chart/Clicker.pm  view on Meta::CPAN

);


has 'legend_position' => (
    is => 'rw',
    isa => 'Str',
    default => 's'
);


has 'marker_overlay' => (
    is => 'rw',
    isa => 'Chart::Clicker::Decoration::MarkerOverlay',
    lazy => 1,
    default => sub {
        Chart::Clicker::Decoration::MarkerOverlay->new
    }
);


has 'over_decorations' => (

lib/Chart/Clicker.pm  view on Meta::CPAN


    # These two adds are here because the plot is too dependant on changes
    # in the axes and such to trust it across multiple prepares.  Putting all
    # of this here made it easier to digest, although this has some codestink
    # to it...
    if($plot->grid->visible && !$self->grid_over) {
        $plot->render_area->add_component($plot->grid, 'c');
    }

    $plot->render_area->add_component(
        $self->marker_overlay
    );

    # Sentinels to control the side that the axes will be drawn on.
    my $dcount = 0;
    my $rcount = 0;
    # Hashes of axes & renderers we've already seen, as we don't want to add
    # them again...
    my %xaxes;
    my %yaxes;

lib/Chart/Clicker.pm  view on Meta::CPAN


=head2 legend

Set/Get the L<legend|Chart::Clicker::Decoration::Legend> that will be used with this chart.

=head2 legend_position

The position the legend will be added.  Should be one of north, south, east,
west or center as required by L<Layout::Manager::Compass>.

=head2 marker_overlay

Set/Get the L<marker overlay|Chart::Clicker::Decoration::MarkerOverlay> object that will be used if this chart
has markers.  This is lazily constructed to save time.

=head2 over_decorations

Set/Get an arrayref of "over decorations", or things that are drawn OVER the
chart.  This is an advanced feature.  See C<overaxis-bar.pl> in the examples.

=head2 padding

Set/Get the L<padding|Graphics::Primitive::Insets>. Defaults



( run in 1.044 second using v1.01-cache-2.11-cpan-d8267643d1d )