Graph-ChartSVG

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

METHODS

            OO interface

 Graph::ChartSVG->new

      Create a new Chart

      possible parameters are :

  active_size

        an array ref with x,y size of the active graph ( without the reserved border for label )
        
     

  bg_color

      an hex color for the global background color
     

  frame

      a Frame object to surround the active part of the graph

  grid

      a Grid oject to add to the graph
      
      

  overlay

     a Overlay to add on top of the graph ( useful to enhance a period in alarm )
      

  layer

     a Layer object
      

  border

     a Border object ( = some extra space to fit aroubd the active graph to allow label.
                    This increase the actual_size and create the total_size)
     

  tag

     a Tag objet ( if missing create a automatically incremented one )
     

  glyph

     a Glyph object to add on the graph ( like a arrow to point at the end of the current data )
        

    my $graph = Graph::ChartSVG->new( active_size => \@size, bg_color =>
    'FCF4C6', frame => $f, png_tag => 1 );

 Frame->new

  color

     a hex color of the frame
     

  thickness

     thickness of the frame

    my $f = Frame->new( color => 'ff0000', thickness => 3 );

 Border->new

  top

     space between the active part of the graph and the top of the image
     

  bottom

     space between the active part of the graph and the bottom of the image
     

  left

     space between the active part of the graph and the left of the image

  right

    space between the active part of the graph and the right of the image



( run in 0.605 second using v1.01-cache-2.11-cpan-39bf76dae61 )