Summary
A framed PowerPoint column plot's flat category labels are seated against the
bottom of the band rather than against the plot, so they sit about 12.3pt lower
than native PowerPoint puts them. On a chart whose band is the native size the
label baseline now falls below the chart frame's own bottom edge.
Measured
tests/fixtures/pptx/bar-chart.pptx repackaged as an Arial column chart by
scripts/probes/issue-1674-column-plot-face.json, on the deck's own
480 x 320pt graphic frame at (120, 110)pt. Reference: the native PowerPoint
16.113.1 export of that variant package, mutool draw -F trace, page points
measured down from the page top.
|
plot bottom |
1st Qtr baseline |
below the plot |
below the frame's bottom edge |
| native PowerPoint 16.113.1 |
392.527 |
419.280 |
26.753 |
-10.720 |
| office2pdf |
392.527 |
431.574 |
39.047 |
+1.574 |
The 12.294pt difference is the same on all four labels (1st Qtr … 4th Qtr),
and it is unchanged by #1674's band fix: before that fix our plot bottom sat
2.497pt higher and our label sat 2.497pt higher with it, so the distance below
the plot was 39.05pt in both builds. The band's size is native; the label's
seat inside it is not.
The band is 37.473pt for this 18pt category axis, and native spends 26.753pt of
it getting to the baseline — leaving room for the descender and a little more.
We spend 39.047pt, which is more than the whole band.
Expected
The category label's baseline is seated against the plot's bottom edge on a
measured share of the face, the way
[ChartFaceLineBox::category_band_pt] sizes the band itself. A one-factor face
and size sweep of the same three probe specs settles the share; the band's own
5/3 ascent + 1 descent composition (#1674) suggests the label's own line
occupies the lower part of it, but that is a hypothesis until measured.
Related: #1674
Summary
A framed PowerPoint column plot's flat category labels are seated against the
bottom of the band rather than against the plot, so they sit about 12.3pt lower
than native PowerPoint puts them. On a chart whose band is the native size the
label baseline now falls below the chart frame's own bottom edge.
Measured
tests/fixtures/pptx/bar-chart.pptxrepackaged as an Arial column chart byscripts/probes/issue-1674-column-plot-face.json, on the deck's own480 x 320pt graphic frame at (120, 110)pt. Reference: the native PowerPoint
16.113.1 export of that variant package,
mutool draw -F trace, page pointsmeasured down from the page top.
1st QtrbaselineThe 12.294pt difference is the same on all four labels (
1st Qtr…4th Qtr),and it is unchanged by #1674's band fix: before that fix our plot bottom sat
2.497pt higher and our label sat 2.497pt higher with it, so the distance below
the plot was 39.05pt in both builds. The band's size is native; the label's
seat inside it is not.
The band is 37.473pt for this 18pt category axis, and native spends 26.753pt of
it getting to the baseline — leaving room for the descender and a little more.
We spend 39.047pt, which is more than the whole band.
Expected
The category label's baseline is seated against the plot's bottom edge on a
measured share of the face, the way
[
ChartFaceLineBox::category_band_pt] sizes the band itself. A one-factor faceand size sweep of the same three probe specs settles the share; the band's own
5/3 ascent + 1 descentcomposition (#1674) suggests the label's own lineoccupies the lower part of it, but that is a hypothesis until measured.
Related: #1674