mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-05 22:31:11 +08:00
Make sure the labels are String
This commit is contained in:
parent
6f9c77f4fe
commit
4b4848438c
@ -15,7 +15,7 @@ module Uplot
|
||||
params.title = headers[0] if headers
|
||||
end
|
||||
params.title ||= headers[1] if headers
|
||||
labels = series[0]
|
||||
labels = series[0].map(&:to_s)
|
||||
values = series[1].map(&:to_f)
|
||||
UnicodePlot.barplot(labels, values, **params.to_hc)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user