app/services/hyrax/statistics/works/over_time.rb in hyrax-3.2.0 vs app/services/hyrax/statistics/works/over_time.rb in hyrax-3.3.0
- old
+ new
@@ -1,9 +1,19 @@
# frozen_string_literal: true
module Hyrax
module Statistics
module Works
class OverTime < Statistics::OverTime
+ def points
+ Enumerator.new(size) do |y|
+ x = @x_min
+ while x <= @x_max
+ y.yield [@x_output.call(x), point(@x_min, x)]
+ x += @delta_x.days
+ end
+ end
+ end
+
private
def relation
Hyrax::WorkRelation.new
end