The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OP::SeriesChart - Experimental image-based series visualizer

SYNOPSIS

  #
  # Load Series data:
  #
  my $log = OP::Log->load($logName);

  my $series = $log->series($start, $end);

  # ... set series opts (consolidation, interpolation, etc)

  my $chart = OP::SeriesChart->new;

  $chart->setStacked(true|false);

  # ... set chart opts (dimensions, limits, etc)

  $chart->addSeries( $series );

  #
  # Render chart to a PNG image:
  #
  open(OOT, ">", "oot.png");

  print OOT $chart->render();

  close(OOT);

SEE ALSO

You might want to take a look at Chart::Clicker, which is more mature than this class but has a very similar interface. SeriesChart will probably go away at some point, replaced with some guidance as to how to use Series objects with Chart::Clicker.

This file is part of OP.