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
|
when :bar, :barplot
|
||||||
Plot.barplot(data, params)
|
Plot.barplot(data, params)
|
||||||
when :count, :c
|
when :count, :c
|
||||||
Plot.barplot(data, params, count = true)
|
Plot.barplot(data, params, count: true)
|
||||||
when :hist, :histogram
|
when :hist, :histogram
|
||||||
Plot.histogram(data, params)
|
Plot.histogram(data, params)
|
||||||
when :line, :lineplot
|
when :line, :lineplot
|
||||||
|
@ -7,7 +7,7 @@ module Uplot
|
|||||||
module Plot
|
module Plot
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
def barplot(data, params, count = false)
|
def barplot(data, params, count: false)
|
||||||
headers = data.headers
|
headers = data.headers
|
||||||
series = data.series
|
series = data.series
|
||||||
if count
|
if count
|
||||||
|
Loading…
Reference in New Issue
Block a user