mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-12-16 03:08:54 +08:00
Rename count -> count_values
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user