lib/axlsx/drawing/area_chart.rb in caxlsx-3.3.0 vs lib/axlsx/drawing/area_chart.rb in caxlsx-3.4.0

- old
+ new

@@ -1,8 +1,6 @@ -# encoding: UTF-8 module Axlsx - # The AreaChart is a two dimentional line chart (who would have guessed?) that you can add to your worksheet. # @example Creating a chart # # This example creates a line in a single sheet. # require "rubygems" # if that is your preferred way to manage gems! # require "axlsx" @@ -18,11 +16,10 @@ # @see Worksheet#add_row # @see Chart#add_series # @see Series # @see Package#serialize class AreaChart < Chart - # the category axis # @return [CatAxis] def cat_axis axes[:cat_axis] end @@ -33,21 +30,21 @@ def val_axis axes[:val_axis] end alias :valAxis :val_axis - # must be one of [:percentStacked, :clustered, :standard, :stacked] + # must be one of [:percentStacked, :clustered, :standard, :stacked] # @return [Symbol] attr_reader :grouping # Creates a new line chart object # @param [GraphicFrame] frame The workbook that owns this chart. # @option options [Cell, String] title # @option options [Boolean] show_legend # @option options [Symbol] grouping # @see Chart - def initialize(frame, options={}) + def initialize(frame, options = {}) @vary_colors = false @grouping = :standard super(frame, options) @series_type = AreaSeries @d_lbls = nil @@ -64,10 +61,10 @@ # chart based on the actual class type and not a fixed node name. # @return [String] def node_name path = self.class.to_s if i = path.rindex('::') - path = path[(i+2)..-1] + path = path[(i + 2)..-1] end path[0] = path[0].chr.downcase path end