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: click_tracks_helper.rb
    path of file: ./repos/Sitepoint-source/Graphs_Chartkick_Practice/app/helpers
    
    the code of the file until where you have to start completion: module ClickTracksHelper
  def stat_by(start_date, end_date)
    start_date ||= 1.month.ago
    end_date ||= Time.current
    line_chart by_day_api_item_click_tracks_path(@item, start_date: start_date, end_date: end_date),
               basic_opts('Click count', start_date, end_date)
  end

  private

  def basic_opts(title, start_date, end_date)

    
  def basic_opts(title, start_date, end_date)
    {
        discrete: true,
        library: {
            title: {text: title, x: -20},
            subtitle: {text: "from #{l(start_date, format: :medium)} to #{l(end_date, format: :medium)}", x: -20},
            yAxis: {
                title: {
                    text: 'Count'
                }
            },
            tooltip: {
                valueSuffix: 'click(s)'
            },
            credits: {
                enabled: false
            }
        }
    }
  end