mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-07 23:51:12 +08:00
Rubocop auto correct
This commit is contained in:
parent
159b90998b
commit
19c3b0367a
@ -18,7 +18,7 @@ module Uplot
|
|||||||
if series.size == 1
|
if series.size == 1
|
||||||
# If there is only one series, use the line number for label.
|
# If there is only one series, use the line number for label.
|
||||||
params.title ||= headers[0] if headers
|
params.title ||= headers[0] if headers
|
||||||
labels = Array.new(series[0].size){|i| (i+1).to_s}
|
labels = Array.new(series[0].size) { |i| (i + 1).to_s }
|
||||||
values = series[0].map(&:to_f)
|
values = series[0].map(&:to_f)
|
||||||
else
|
else
|
||||||
params.title ||= headers[1] if headers
|
params.title ||= headers[1] if headers
|
||||||
|
@ -62,12 +62,10 @@ module Uplot
|
|||||||
else
|
else
|
||||||
arr
|
arr
|
||||||
end
|
end
|
||||||
|
elsif headers
|
||||||
|
transpose2(arr[1..-1])
|
||||||
else
|
else
|
||||||
if headers
|
transpose2(arr)
|
||||||
transpose2(arr[1..-1])
|
|
||||||
else
|
|
||||||
transpose2(arr)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user