examples/chart_scatter.rb in write_xlsx-1.00.0 vs examples/chart_scatter.rb in write_xlsx-1.01.0

- old
+ new

@@ -4,11 +4,11 @@ ####################################################################### # # A demo of a Scatter chart in Excel::Writer::XLSX. # # reverse(c), March 2011, John McNamara, jmcnamara@cpan.org -# convert to ruby by Hideo NAKAMURA, cxn03651@msj.biglobe.ne.jp +# convert to ruby by Hideo NAKAMURA, nakamura.hideo@gmail.com # require 'write_xlsx' workbook = WriteXLSX.new('chart_scatter.xlsx') @@ -51,8 +51,11 @@ # Set an Excel chart style. Blue colors with white outline and shadow. chart.set_style(10) # Insert the chart into the worksheet (with an offset). -worksheet.insert_chart('D2', chart, 25, 10) +worksheet.insert_chart( + 'D2', chart, + :x_offset => 25, :y_offset => 10 +) workbook.close