def store_series_stream(params)   # :nodoc:
    name_type     = _formula_type_from_param(2, 1, params, :name_formula)
    value_type    = _formula_type_from_param(2, 0, params, :value_formula)
    category_type = _formula_type_from_param(2, 0, params, :category_formula)

    store_series(params[:value_count], params[:category_count])

    store_begin

    # Store the Series name AI record.
    store_ai(0, name_type, params[:name_formula])
    unless params[:name].nil?
      store_seriestext(params[:name], params[:name_encoding])
    end

    store_ai(1, value_type,    params[:value_formula])
    store_ai(2, category_type, params[:category_formula])
    store_ai(3, 1,             '' )

    store_dataformat_stream(params[:index])
    store_sertocrt
    store_end
  end
def store_series_stream(params)   # :nodoc:
    name_type     = _formula_type_from_param(2, 1, params, :name_formula)
    value_type    = _formula_type_from_param(2, 0, params, :value_formula)
    category_type = _formula_type_from_param(2, 0, params, :category_formula)

    store_series(params[:value_count], params[:category_count])

    store_begin

    # Store the Series name AI record.
    store_ai(0, name_type, params[:name_formula])
    unless params[:name].nil?
      store_seriestext(params[:name], params[:name_encoding])
    end

    store_ai(1, value_type,    params[:value_formula])
    store_ai(2, category_type, params[:category_formula])
    store_ai(3, 1,             '' )

    store_dataformat_stream(params[:index])
    store_sertocrt
    store_end
  end
Write the SERIES chart substream.