logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Chart::Clicker::Data::Series::HighLow - Series data with additional attributes for High-Low charts

Attributes

highs
       Set/Get the highs for this series.

   lows
       Set/Get the lows for this series.

   opens
       Set/Get the opens for this series.

Author

       Cory G Watson <gphat@cpan.org>

Description

       Chart::Clicker::Data::Series::HighLow is an extension of the Series class that provides storage for a
       three new variables called for use with the CandleStick renderer.  The general idea is:

         --- <-- High
          |
          |
          -  <-- max of Open, Value
         | |
         | |
          -  <-- min of Open, Value
          |
          |
         --- <-- Low

Methods

add_to_highs
       Adds a high to this series.

   get_high($index)
       Get a high by it's index.

   high_count
       Gets the count of sizes in this series.

   add_to_lows
       Adds a high to this series.

   get_low($index)
       Get a low by it's index.

   low_count
       Gets the count of lows in this series.

   add_to_opens
       Adds an open to this series.

   get_open
       Get an open by it's index.

   open_count
       Gets the count of opens in this series.

Name

       Chart::Clicker::Data::Series::HighLow - Series data with additional attributes for High-Low charts

Synopsis

         use Chart::Clicker::Data::Series::HighLow;

         my @keys = ();
         my @values = ();
         my @highs = ();
         my @lows = ();
         my @opens = ();

         my $series = Chart::Clicker::Data::Series::HighLow->new({
           keys    => \@keys,
           values  => \@values,
           highs   => \@highs,
           lows    => \@lows,
           opens   => \@opens
         });

Version

       version 2.90

See Also