From 4b4848438c39618a3d3d5cae7e2d393700e75a5b Mon Sep 17 00:00:00 2001 From: kojix2 <2xijok@gmail.com> Date: Sun, 8 Nov 2020 12:21:05 +0900 Subject: [PATCH] Make sure the labels are String --- lib/uplot/plot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/uplot/plot.rb b/lib/uplot/plot.rb index d726c8a..0e74a81 100644 --- a/lib/uplot/plot.rb +++ b/lib/uplot/plot.rb @@ -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