Files
danbooru/app/components/time_series_component.rb
evazion f73d2e3956 reports: add ability to group reports by column.
Add ability to group reports by various columns. For example, you can see
the posts by the top 10 uploaders over time, or posts grouped by rating
over time.
2022-10-22 04:05:10 -05:00

14 lines
316 B
Ruby

# frozen_string_literal: true
class TimeSeriesComponent < ApplicationComponent
delegate :current_page_path, :search_params, to: :helpers
attr_reader :dataframe, :group, :mode
def initialize(dataframe, group: nil, mode: :table)
@dataframe = dataframe
@group = group
@mode = mode.to_sym
end
end