examples/chart_combined.rb in write_xlsx-0.86.0 vs examples/chart_combined.rb in write_xlsx-0.87.0

- old
+ new

@@ -97,10 +97,12 @@ # 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)') -column_chart2.set_y2_axis(:name => 'Target length (mm)') + +# 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) workbook.close