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: bubble_series.rb
    path of file: ./repos/apexcharts.rb/lib/apex_charts/series
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative '../utils/copy'

module ApexCharts::Series
    
    def initialize(data)
      data = deep_copy(data)
      sanitized =
        case data
        when Array
          if array_of_threes?(data)
            [{data: data}]
          else
            data
          end