examples/chart_radar.rb in write_xlsx-1.10.2 vs examples/chart_radar.rb in write_xlsx-1.11.0
- old
+ new
@@ -42,14 +42,12 @@
name: '=Sheet1!$C$1',
categories: ['Sheet1', 1, 6, 0, 0],
values: ['Sheet1', 1, 6, 2, 2]
)
-# Add a chart title and some axis labels.
+# Add a chart title.
chart1.set_title(name: 'Results of sample analysis')
-chart1.set_x_axis(name: 'Test number')
-chart1.set_y_axis(name: 'Sample length (mm)')
# Set an Excel chart style. Blue colors with white outline and shadow.
chart1.set_style(11)
# Insert the chart into the worksheet (with an offset).
@@ -79,14 +77,12 @@
name: '=Sheet1!$C$1',
categories: ['Sheet1', 1, 6, 0, 0],
values: ['Sheet1', 1, 6, 2, 2]
)
-# Add a chart title and some axis labels.
+# Add a chart title.
chart2.set_title(name: 'Stacked Chart')
-chart2.set_x_axis(name: 'Test number')
-chart2.set_y_axis(name: 'Sample length (mm)')
# Set an Excel chart style. Blue colors with white outline and shadow.
chart2.set_style(12)
# Insert the chart into the worksheet (with an offset).
@@ -116,13 +112,11 @@
name: '=Sheet1!$C$1',
categories: ['Sheet1', 1, 6, 0, 0],
values: ['Sheet1', 1, 6, 2, 2]
)
-# Add a chart title and some axis labels.
+# Add a chart title.
chart3.set_title(name: 'Percent Stacked Chart')
-chart3.set_x_axis(name: 'Test number')
-chart3.set_y_axis(name: 'Sample length (mm)')
# Set an Excel chart style. Blue colors with white outline and shadow.
chart3.set_style(13)
# Insert the chart into the worksheet (with an offset).