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: chart_handler.rb
    path of file: ./repos/catarse/app/models/concerns/shared
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Shared::ChartHandler
  extend ActiveSupport::Concern

  included do
    def self.chart
      series = [
        { name: I18n.t('admin.statistics.cha
    
    def self.chart
      series = [
        { name: I18n.t('admin.statistics.charts.current_period'), data: {} },
        { name: I18n.t('admin.statistics.charts.last_year'), data: {} }
      ]
      all.each do |data|
        series[0][:data][data.label] = data.current_year
        series[1][:data][data.label] = data.last_year
      end
      series
    end