def store_chart_stream # :nodoc:
    store_chart(*@config[:chart])
    store_begin

    # Store the chart SCL record.
    store_plotgrowth

    if @chartarea[:visible] != 0
      store_chartarea_frame_stream
    end

    # Store SERIES stream for each series.
    index = 0
    @series.each do |series|
      store_series_stream(
          :index            => index,
          :value_formula    => series[:values][0],
          :value_count      => series[:values][1],
          :category_count   => series[:categories][1],
          :category_formula => series[:categories][0],
          :name             => series[:name],
          :name_encoding    => series[:name_encoding],
          :name_formula     => series[:name_formula]
        )
        index += 1
    end

    store_shtprops

    # Write the TEXT streams.
    (5..6).each do |font_index|
      store_defaulttext
      store_series_text_stream(font_index)
    end

    store_axesused(1)
    store_axisparent_stream

    if !@title_name.nil? || !@title_formula.nil?
      store_title_text_stream
    end

    store_end
  end
def store_chart_stream # :nodoc:
    store_chart(*@config[:chart])
    store_begin

    # Store the chart SCL record.
    store_plotgrowth

    if @chartarea[:visible] != 0
      store_chartarea_frame_stream
    end

    # Store SERIES stream for each series.
    index = 0
    @series.each do |series|
      store_series_stream(
          :index            => index,
          :value_formula    => series[:values][0],
          :value_count      => series[:values][1],
          :category_count   => series[:categories][1],
          :category_formula => series[:categories][0],
          :name             => series[:name],
          :name_encoding    => series[:name_encoding],
          :name_formula     => series[:name_formula]
        )
        index += 1
    end

    store_shtprops

    # Write the TEXT streams.
    (5..6).each do |font_index|
      store_defaulttext
      store_series_text_stream(font_index)
    end

    store_axesused(1)
    store_axisparent_stream

    if !@title_name.nil? || !@title_formula.nil?
      store_title_text_stream
    end

    store_end
  end
Store the CHART record and it's substreams.