From 407b884ef349d6dec12f50006ea6268c96205a83 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Sun, 27 Nov 2011 21:34:48 +0900 Subject: adding yields for package workbook, workbook styles and cols collection on worksheet to make charting easier. --- doc/Axlsx/Series.html | 230 +++++++++++--------------------------------------- 1 file changed, 51 insertions(+), 179 deletions(-) (limited to 'doc/Axlsx/Series.html') diff --git a/doc/Axlsx/Series.html b/doc/Axlsx/Series.html index 29aca381..99210c00 100644 --- a/doc/Axlsx/Series.html +++ b/doc/Axlsx/Series.html @@ -97,16 +97,14 @@
Note: -

-The recommended way to manage series is to use Chart#add_series -

+
+

The recommended way to manage series is to use Chart#add_series

-

-A Series defines the common series attributes and is the super class for -all concrete series types. -

+ +

A Series defines the common series attributes and is the super class for +all concrete series types.

@@ -151,9 +149,8 @@ all concrete series types. -

-The chart that owns this series. -

+
+

The chart that owns this series.

@@ -178,9 +175,8 @@ The chart that owns this series. -

-The title of the series. -

+
+

The title of the series.

@@ -215,9 +211,8 @@ The title of the series. -

-The index of this series in the chart’s series. -

+
+

The index of this series in the chart's series.

@@ -241,9 +236,8 @@ The index of this series in the chart’s series. -

-Creates a new series. -

+
+

Creates a new series.

@@ -265,9 +259,8 @@ Creates a new series. -

-The order of this series in the chart’s series. -

+
+

The order of this series in the chart's series.

@@ -291,30 +284,6 @@ The order of this series in the chart’s series.
- - - -
  • - - - - (String) to_xml(xml) - - - - - - - - - - - - -

    -Serializes the series. -

    -
    -
  • @@ -333,9 +302,8 @@ Serializes the series.

    -

    -Creates a new series -

    + +

    Creates a new series

    @@ -367,9 +335,8 @@ Creates a new series — -

    -a customizable set of options -

    +
    +

    a customizable set of options

    @@ -424,15 +391,14 @@ a customizable set of options
    # File 'lib/axlsx/drawing/series.rb', line 20
     
    -def initialize(chart, options={})
    -  @order = nil
    -  self.chart = chart
    -  @chart.series << self
    -  options.each do |o|
    -    self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}="
    -  end
    -end
    -
    +def initialize(chart, options={}) + @order = nil + self.chart = chart + @chart.series << self + options.each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end @@ -455,9 +421,8 @@ a customizable set of options

    -

    -The chart that owns this series -

    + +

    The chart that owns this series

    @@ -491,10 +456,9 @@ The chart that owns this series
    # File 'lib/axlsx/drawing/series.rb', line 10
     
    -def chart
    -  @chart
    -end
    -
    +def chart + @chart +end @@ -512,9 +476,8 @@ The chart that owns this series

    -

    -The title of the series -

    + +

    The title of the series

    @@ -548,10 +511,9 @@ The title of the series
    # File 'lib/axlsx/drawing/series.rb', line 14
     
    -def title
    -  @title
    -end
    -
    +def title + @title +end @@ -573,9 +535,8 @@ The title of the series

    -

    -The index of this series in the chart’s series. -

    + +

    The index of this series in the chart's series.

    @@ -609,10 +570,9 @@ The index of this series in the chart’s series.
    # File 'lib/axlsx/drawing/series.rb', line 31
     
    -def index
    -  @chart.series.index(self)
    -end
    -
    +def index + @chart.series.index(self) +end @@ -627,10 +587,9 @@ The index of this series in the chart’s series.

    -

    -The order of this series in the chart’s series. By default the order -is the index of the series. -

    + +

    The order of this series in the chart's series. By default the order is the +index of the series.

    @@ -664,10 +623,9 @@ is the index of the series.
    # File 'lib/axlsx/drawing/series.rb', line 38
     
    -def order
    -  @order || index
    -end
    -
    +def order + @order || index +end @@ -707,93 +665,7 @@ is the index of the series.
    # File 'lib/axlsx/drawing/series.rb', line 43
     
    -def order=(v)  Axlsx::validate_unsigned_int(v); @order = v end
    -
    - - - -
    - -
    -

    - - - (String) to_xml(xml) - - - -

    -
    -

    -Serializes the series -

    - - -
    -
    -
    -

    Parameters:

    -
      - -
    • - - xml - - - (Nokogiri::XML::Builder) - - - - — -

      -The document builder instance this objects xml will be added to. -

      -
      - -
    • - -
    - -

    Returns:

    -
      - -
    • - - - (String) - - - -
    • - -
    - -
    - - -
    -
    -
    -
    -60
    -61
    -62
    -63
    -64
    -65
    -66
    -67
    -
    -
    # File 'lib/axlsx/drawing/series.rb', line 60
    -
    -def to_xml(xml)
    -  xml.send('c:ser') {
    -    xml.send('c:idx', :val=>index)
    -    xml.send('c:order', :val=>order || index)        
    -    title.to_xml(xml) unless title.nil?
    -    yield xml if block_given?
    -  }
    -end
    -
    +def order=(v) Axlsx::validate_unsigned_int(v); @order = v; end
    @@ -804,9 +676,9 @@ The document builder instance this objects xml will be added to.
    -- cgit v1.2.3