examples/chart_combined.rb in write_xlsx-1.09.4 vs examples/chart_combined.rb in write_xlsx-1.09.5

- old
+ new

@@ -16,11 +16,11 @@ bold = workbook.add_format(:bold => 1) # Add the worksheet data that the charts will refer to. headings = ['Number', 'Batch 1', 'Batch 2'] data = [ - [ 2, 3, 4, 5, 6, 7], + [2, 3, 4, 5, 6, 7], [10, 40, 50, 20, 10, 50], [30, 60, 70, 50, 40, 30] ] worksheet.write('A1', headings, bold) @@ -58,11 +58,10 @@ # primary chart. column_chart1.set_title(:name => 'Combined chart - same Y axis') column_chart1.set_x_axis(:name => 'Test number') column_chart1.set_y_axis(:name => 'Sample length (mm)') - # Insert the chart into the worksheet worksheet.insert_chart('E2', column_chart1) # # In the second example we will create a similar combined column and line @@ -98,10 +97,10 @@ # Add a chart title and some axis labels. column_chart2.set_title(:name => 'Combine chart - secondary Y axis') column_chart2.set_x_axis(:name => 'Test number') column_chart2.set_y_axis(:name => 'Sample length (mm)') -# Note: the y2 properties are on the secondary chart. +# NOTE: the y2 properties are on the secondary chart. line_chart2.set_y_axis(:name => 'Target length (mm)') # Insert the chart into the worksheet worksheet.insert_chart('E18', column_chart2)