examples/example_chart.rb in fast_excel-0.2.0 vs examples/example_chart.rb in fast_excel-0.2.1
- old
+ new
@@ -1,8 +1,8 @@
-require_relative './lib/fast_excel'
+require_relative '../lib/fast_excel'
-workbook = FastExcel.open("chart_ffi.xlsx", constant_memory: true)
+workbook = FastExcel.open("example_chart.xlsx", constant_memory: true)
worksheet = workbook.add_worksheet
for i in 0..5
for n in 0..3
worksheet.write_number(i, n, (i + 1) * (n + 1), nil)
@@ -16,5 +16,6 @@
chart.add_series("Montgomery", "Sheet1!$C$1:$C$5")
worksheet.insert_chart(1, 7, chart)
workbook.close
+puts "Saved to file example_chart.xlsx"
\ No newline at end of file