mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Rename count -> count_values
This commit is contained in:
parent
40304329bc
commit
6f9c77f4fe
@ -11,7 +11,7 @@ module Uplot
|
||||
headers = data.headers
|
||||
series = data.series
|
||||
if count
|
||||
series = Preprocessing.count(series[0])
|
||||
series = Preprocessing.count_values(series[0])
|
||||
params.title = headers[0] if headers
|
||||
end
|
||||
params.title ||= headers[1] if headers
|
||||
|
@ -71,7 +71,7 @@ module Uplot
|
||||
end
|
||||
end
|
||||
|
||||
def count(arr)
|
||||
def count_values(arr)
|
||||
# tally was added in Ruby 2.7
|
||||
if Enumerable.method_defined? :tally
|
||||
arr.tally
|
||||
|
Loading…
Reference in New Issue
Block a user