def set_title(params)
    name, encoding = encode_utf16( params[:name], params[:name_encoding])

    formula = parse_series_formula(params[:name_formula])

    @title_name     = name
    @title_encoding = encoding
    @title_formula  = formula
  end
def set_title(params)
    name, encoding = encode_utf16( params[:name], params[:name_encoding])

    formula = parse_series_formula(params[:name_formula])

    @title_name     = name
    @title_encoding = encoding
    @title_formula  = formula
  end
The set_title() method is used to set properties of the chart title.

     chart.set_title(:name => 'Year End Results')

 The properties that can be set are:

     :name          (optional)
     :name_formula  (optional)

     * :name

       Set the name (title) for the chart. The name is displayed above the
       chart. This property is optional. The default is to have no chart
       title.

           chart.set_title(:name => 'Year End Results')

     * :name_formula

       Optional, can be used to link the name to a worksheet cell.
       See "Chart names and links".

           chart.set_title(
             :name          => 'Year End Results',
             :name_formula  => '=Sheet1!$C$1'
           )