You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: display.rb
    path of file: ./repos/daru-view/lib/daru/view/adapters/googlecharts
    
    the code of the file until where you have to start completion: require 'securerandom'
require 'erb'
require_relative 'data_table_iruby'
require_relative 'base_chart'
require_relative 'generate_javascript'
require_relative 'formatters'

module Display
  # Holds a value only when to_html method is invoked
  # @return [String] The ID of the DIV element that the Google Chart or
  #   Google DataTable should be rendered in
  attr_accessor :html_id
  attr_accessor :formatters

  def show_script(dom=SecureRandom.uuid, options={})
    script_tag = options.fetch(:script_tag, true)
    # To understand different formatters see:
    # https://
    
  def show_script(dom=SecureRandom.uuid, options={})
    script_tag = options.fetch(:script_tag, true)
    # To understand different formatters see:
    # https://developers.google.com/chart/interactive/docs/reference#formatters
    apply_formatters if is_a?(GoogleVisualr::DataTable)
    if script_tag
      show_script_with_script_tag(dom)
    # Without checking for user_options, data as hash was not working!
    elsif user_options && user_options[:chart_class]
      extract_chart_wrapper_editor_js(dom)
    elsif data.is_a?(String)
      get_html_spreadsheet(data, dom)
    else
      get_html(dom)
    end
  end