mirror of
https://github.com/red-data-tools/YouPlot.git
synced 2025-05-06 07:10:10 +08:00
Support headers in progressive mode
This commit is contained in:
parent
6d707533a0
commit
1b525f1335
@ -63,7 +63,16 @@ module YouPlot
|
||||
def main_progressive(input)
|
||||
output_data(input)
|
||||
|
||||
@raw_data ||= String.new
|
||||
# FIXME
|
||||
# Worked around the problem of not being able to draw
|
||||
# plots when there is only one header line.
|
||||
if @raw_data.nil?
|
||||
@raw_data = String.new
|
||||
if options[:headers]
|
||||
@raw_data << input
|
||||
return
|
||||
end
|
||||
end
|
||||
@raw_data << input
|
||||
|
||||
# FIXME
|
||||
|
Loading…
Reference in New Issue
Block a user