mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Use keyword arg for count
This commit is contained in:
parent
de33805c56
commit
943d4e6c44
@ -45,7 +45,7 @@ module Uplot
|
||||
when :bar, :barplot
|
||||
Plot.barplot(data, params)
|
||||
when :count, :c
|
||||
Plot.barplot(data, params, count = true)
|
||||
Plot.barplot(data, params, count: true)
|
||||
when :hist, :histogram
|
||||
Plot.histogram(data, params)
|
||||
when :line, :lineplot
|
||||
|
@ -7,7 +7,7 @@ module Uplot
|
||||
module Plot
|
||||
module_function
|
||||
|
||||
def barplot(data, params, count = false)
|
||||
def barplot(data, params, count: false)
|
||||
headers = data.headers
|
||||
series = data.series
|
||||
if count
|
||||
|
Loading…
Reference in New Issue
Block a user