# frozen_string_literal: true

require "chartkit"

module Reportgen
  # Builds the charts embedded in a rendered report via the chartkit gem.
  class Charts
    def build(series:)
      Chartkit::SVG.render(series)
    end
  end
end
