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