Make sure the labels are String

This commit is contained in:
kojix2 2020-11-08 12:21:05 +09:00
parent 6f9c77f4fe
commit 4b4848438c

View File

@ -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