From 8b5164163c705e55ae10704c88534fc2ce50c407 Mon Sep 17 00:00:00 2001 From: Randy Morgan Date: Mon, 21 Nov 2011 23:46:07 +0900 Subject: version bump and docs update --- doc/Axlsx/Chart.html | 220 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 155 insertions(+), 65 deletions(-) (limited to 'doc/Axlsx/Chart.html') diff --git a/doc/Axlsx/Chart.html b/doc/Axlsx/Chart.html index d60170e6..af6c0596 100644 --- a/doc/Axlsx/Chart.html +++ b/doc/Axlsx/Chart.html @@ -116,7 +116,7 @@ A Chart is the superclass for specific charts

Direct Known Subclasses

-

Bar3DChart, Pie3DChart

+

Bar3DChart, Line3DChart, Pie3DChart

@@ -336,6 +336,33 @@ The starting marker for this chart.

+ + + +
  • + + + - (Integer) style + + + + + + + + + + + + + + + +

    +The style for the chart. +

    +
    +
  • @@ -614,22 +641,24 @@ the object that the method was called on
     
     
    -52
    -53
    -54
    -55
    -56
    -57
     58
     59
     60
     61
    -62
    +62 +63 +64 +65 +66 +67 +68 +69 -
    # File 'lib/axlsx/drawing/chart.rb', line 52
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 58
     
     def initialize(frame, options={})
    +  @style = 2
       @graphic_frame=frame
       @graphic_frame.anchor.drawing.worksheet.workbook.charts << self
       @series = SimpleTypedList.new Series
    @@ -692,12 +721,12 @@ The ending marker for this chart
           
     
     
    -42
    -43
    -44
    +48 +49 +50
    -
    # File 'lib/axlsx/drawing/chart.rb', line 42
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 48
     
     def end_at
       @end_at
    @@ -749,12 +778,12 @@ A reference to the graphic frame that owns this chart
           
     
     
    -15
    -16
    -17
    +21 +22 +23
    -
    # File 'lib/axlsx/drawing/chart.rb', line 15
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 21
     
     def graphic_frame
       @graphic_frame
    @@ -806,12 +835,12 @@ The index of this chart in the workbooks charts collection
           
     
     
    -27
    -28
    -29
    +33 +34 +35
    -
    # File 'lib/axlsx/drawing/chart.rb', line 27
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 33
     
     def index
       @graphic_frame.anchor.drawing.worksheet.workbook.charts.index(self)
    @@ -863,12 +892,12 @@ The part name for this chart
           
     
     
    -31
    -32
    -33
    +37 +38 +39
    -
    # File 'lib/axlsx/drawing/chart.rb', line 31
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 37
     
     def pn
       "#{CHART_PN % (index+1)}"
    @@ -920,12 +949,12 @@ A collection of series objects that are applied to the chart
           
     
     
    -19
    -20
    -21
    +25 +26 +27
    -
    # File 'lib/axlsx/drawing/chart.rb', line 19
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 25
     
     def series
       @series
    @@ -977,12 +1006,12 @@ The type of series to use for this chart
           
     
     
    -23
    -24
    -25
    +29 +30 +31
    -
    # File 'lib/axlsx/drawing/chart.rb', line 23
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 29
     
     def series_type
       @series_type
    @@ -1034,12 +1063,12 @@ Show the legend in the chart
           
     
     
    -46
    -47
    -48
    +52 +53 +54
    -
    # File 'lib/axlsx/drawing/chart.rb', line 46
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 52
     
     def show_legend
       @show_legend
    @@ -1091,12 +1120,12 @@ The starting marker for this chart
           
     
     
    -38
    -39
    -40
    +44 +45 +46
    -
    # File 'lib/axlsx/drawing/chart.rb', line 38
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 44
     
     def start_at
       @start_at
    @@ -1108,6 +1137,63 @@ The starting marker for this chart
     
         
           
    +      
    +      
    +      
    +

    + + - (Integer) style + + + +

    +
    +

    +The style for the chart. see ECMA Part 1 ยง21.2.2.196 +

    + + +
    +
    +
    + +

    Returns:

    +
      + +
    • + + + (Integer) + + + +
    • + +
    + +
    + + + + +
    +
    +
    +
    +14
    +15
    +16
    +
    +
    # File 'lib/axlsx/drawing/chart.rb', line 14
    +
    +def style
    +  @style
    +end
    +
    +
    +
    + +
    @@ -1148,12 +1234,12 @@ The title object for the chart.
     
     
    -8
     9
    -10
    +10 +11
    -
    # File 'lib/axlsx/drawing/chart.rb', line 8
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 9
     
     def title
       @title
    @@ -1192,12 +1278,12 @@ The 3D view properties for the chart
           
     
     
    -11
    -12
    -13
    +17 +18 +19
    -
    # File 'lib/axlsx/drawing/chart.rb', line 11
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 17
     
     def view3D
       @view3D
    @@ -1260,13 +1346,13 @@ Adds a new series to the chart’s series collection.
           
     
     
    -85
    -86
    -87
    -88
    +94 +95 +96 +97
    -
    # File 'lib/axlsx/drawing/chart.rb', line 85
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 94
     
     def add_series(options={})
       @series_type.new(self, options)
    @@ -1303,15 +1389,6 @@ Chart Serialization serializes the chart
           
     
     
    -92
    -93
    -94
    -95
    -96
    -97
    -98
    -99
    -100
     101
     102
     103
    @@ -1323,14 +1400,27 @@ Chart Serialization serializes the chart
     109
     110
     111
    -112
    +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123
    -
    # File 'lib/axlsx/drawing/chart.rb', line 92
    +      
    # File 'lib/axlsx/drawing/chart.rb', line 101
     
     def to_xml
       builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml|
         xml.send('c:chartSpace',:'xmlns:c' => XML_NS_C, :'xmlns:a' => XML_NS_A) {
    +      xml.send('c:date1904', :val=>Axlsx::Workbook.date1904)
    +      xml.send('c:style', :val=>style)
           xml.send('c:chart') {
             @title.to_xml(xml) unless @title.nil?
             @view3D.to_xml(xml) unless @view3D.nil?
    @@ -1360,7 +1450,7 @@ Chart Serialization serializes the chart
     
         
         
    -- 
    cgit v1.2.3