mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-09-16 08:10:18 +08:00
Make sure the labels are String
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user