Commit Graph

3 Commits

Author SHA1 Message Date
saifulislamferoz 97b895ecd8 Add sample for pivot field group item counts
Demonstrates the three ways a pivot field's item count is derived: a
fractional numeric range, a date grouping, and an ungrouped field taking
its items from the distinct source values.

The fractional interval (0..1 by 0.1) is the case worth showing, since
it is the one where computing bucket boundaries by index rather than by
repeated addition matters: repeated addition drifts past the last
boundary and emits a spurious zero-width "1-1" bucket, which leaves the
pivot field and cache item counts disagreeing.

SampleTest discovers and executes samples automatically, so this runs
as part of the suite.
2026-08-28 10:10:13 +06:00
saifulislamferoz 7d7f5061ae Apply php-cs-fixer style fixes to pivot table files
Shorten @see references to unqualified class names and drop a stray blank
line after the sample header docblock, matching the project's php-cs-fixer
and phpcs rules.
2026-08-03 11:52:58 +06:00
saifulislamferoz 6afe310f8a Add PivotTable samples
Adds runnable samples under samples/PivotTable demonstrating the pivot table
feature, discovered automatically by the sample browser:

- 01_Create_PivotTable: build a basic pivot (row/column/value fields) from a
  source range and save it as Xlsx.
- 02_PivotTable_Page_Filter: add a page (report filter) field.
- 03_PivotTable_Grouping: group a numeric field into ranges and a date field
  by quarter.
- 04_Read_PivotTable: write a pivot, load it back, and inspect the pivot table
  object model (source, row/column/page fields, value aggregation).

Directory is named PivotTable to match the PascalCase convention used by the
other sample categories (Table, Chart, ...).
2026-08-03 11:52:58 +06:00