Sha256: ecc3ae402b640a9b1ae932498dfecfa2a5ceaf39152d6425455e090071d28e8b

Contents?: true

Size: 811 Bytes

Versions: 3

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

module Goldendocx
  module Charts
    module Properties
      class ColumnChartProperty
        include Goldendocx::Element

        namespace :c
        tag :barChart

        embeds_one :direction, class_name: 'Goldendocx::Charts::Properties::DirectionProperty', auto_build: true
        embeds_one :grouping, class_name: 'Goldendocx::Charts::Properties::GroupingProperty', auto_build: true

        embeds_many :axes, class_name: 'Goldendocx::Charts::Properties::AxisProperty'
        embeds_many :series, class_name: 'Goldendocx::Charts::Series'

        def initialize
          build_direction(direction: :col)
          build_grouping(value: :clustered)

          build_axis(axis_id: 9374902)
          build_axis(axis_id: 2094739)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
goldendocx-0.3.0 lib/goldendocx/charts/properties/column_chart_property.rb
goldendocx-0.2.3 lib/goldendocx/charts/properties/column_chart_property.rb
goldendocx-0.2.2 lib/goldendocx/charts/properties/column_chart_property.rb