summaryrefslogtreecommitdiffhomepage
path: root/examples/pivot_table_example.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pivot_table_example.md')
-rw-r--r--examples/pivot_table_example.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pivot_table_example.md b/examples/pivot_table_example.md
index 21176a73..8dd12955 100644
--- a/examples/pivot_table_example.md
+++ b/examples/pivot_table_example.md
@@ -27,7 +27,7 @@ wb.add_worksheet(name: 'Basic Worksheet') do |sheet|
sheet.add_pivot_table 'G4:L17', 'A1:E31' do |pivot_table|
pivot_table.rows = ['Month', 'Year']
pivot_table.columns = ['Type']
- pivot_table.data = ['Sales']
+ pivot_table.data = [ref: 'Sales', num_fmt: 4]
pivot_table.pages = ['Region']
end
end