summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorStefan <[email protected]>2021-03-19 12:05:27 +0100
committerStefan <[email protected]>2021-03-19 12:05:27 +0100
commit421c383a1f8ba9b0257ac81da53f74178bae1446 (patch)
treefc3556a249c6ba154134abdb8b692e81d614dda1 /examples
parent33e2771710a1f0a7740d15cf0b9925f9079d486b (diff)
downloadcaxlsx-421c383a1f8ba9b0257ac81da53f74178bae1446.tar.gz
caxlsx-421c383a1f8ba9b0257ac81da53f74178bae1446.zip
Number format in pivot tables: update changelog and pivot table example
Diffstat (limited to 'examples')
-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