Portable primary Column and secondary Scatter
Two groups with independent horizontal domains
The finite portable chart profile captures one primary clustered Column series and one secondary straight Scatter series through the existing XLSX Workbook and portable scene APIs
The primary series uses category bands and its own value scale; the secondary series uses independently paired numeric X and Y caches and its own numeric horizontal and vertical scales
The two series may have different point counts, and Scatter points use their actual numeric X values rather than equally spaced category indexes
| Chart role | Required represented state |
|---|---|
| First plot group | xlsxChartColumn, xlsxAxisPrimary, clustered grouping and one series |
| Second plot group | xlsxChartScatter, xlsxAxisSecondary and one series |
| Secondary line | Visible straight unsmoothed segments with an explicit line color |
| Secondary markers | Explicit circle markers with explicit fill and border colors |
| Chart appearance | Style 0, no title, no legend, no data labels, no trendlines and no error bars |
| Value domains | Explicit finite increasing bounds and positive major units on primary Y, secondary X and secondary Y |
Use Chart.AddPlotGroup(xlsxChartScatter, xlsxAxisSecondary) for the second group; its CategoryCache carries numeric X values and its ValueCache carries the paired numeric Y values, both with contiguous zero-based indexes
SecondaryCategoryAxis.Kind=xlsxAxisValue declares the numeric horizontal role; the secondary horizontal and vertical axes require explicit maximum crossings and retain their top and right ownership
Four axis owners
The primary category and value axes form one crossing pair, and the secondary numeric horizontal and vertical axes form another; the four active identities must be distinct and every represented crossing or group reference must agree with its pair
Unspecified authored identities use the existing writer defaults; explicit duplicate identities, references to the other pair and category/numeric mixing on one pair refuse capture
Plot-group membership determines the domain, while ZOrder controls paint order; equal ZOrder values retain stable group order and do not exchange primary and secondary ownership
Numeric placement and clipping
For a declared secondary domain from -4 to 10, X values -2, 0.5, 4 and 9 map to normalized horizontal positions 1/7, 9/28, 4/7 and 13/14 within the plot rectangle
Each group's points and value domain are processed independently; changing a secondary X/Y sample or endpoint does not substitute those numbers into the primary category scale
Straight connecting segments and circle markers retain the finite plot clip; explicit lower-level inner plot rectangles support exact coordinate checks without establishing native automatic Cartesian layout
Public lifecycle and immutable scenes
Author with the existing typed model, save and normally reopen the XLSX package, then use CaptureXLSPortableRenderSnapshot to capture its represented appearance; the returned snapshot owns its scene and can be serialized and loaded independently
Actual local one-dimensional worksheet references may supply the X/Y caches; the qualified source-edit path saves and normally reopens the Workbook to retain the resolved updated caches, then captures those values
Capture consumes complete stored chart caches and does not implicitly calculate worksheet formulas
Capture copies the represented model and configuration before geometry callbacks; a later callback change to live source data does not replace the already captured numeric domain
Malformed ownership, unsupported profiles and caller limits reject before publishing a partial scene; the source retains its current state and can be captured again after correcting the refused condition
Finite bounds
This profile has exactly two plot groups and two series; each dense cache retains the existing 100000-point admission bound and the caller's stricter item, text and byte limits
Each explicit numeric endpoint has magnitude at most 1E100, each span and major unit is at least 1E-100, and major units must meet the finite precision and at-most-64-tick planning checks
All samples must be finite, paired and inside their declared numeric domains; numeric X is not inferred from missing values or category labels
Fixed numeric-axis state is included in the initial plan charge, and cache/text admission precedes data-dependent allocations; these limits do not establish a whole-process memory ceiling
Acceptance boundaries
Public Win64 authoring, package saving and reopening, capture, immutable scene persistence, direct numeric geometry and actual worksheet-source refresh have separate controls
Actual Linux Cairo rendering consumes explicit-geometry scene snapshots from the qualified typed model; public Workbook capture has separate snapshot controls, and the backend observation does not claim Linux executed the new combined-model recorder
Native observations establish normal opening, retained series and axis values, image output and edited SaveAs/reopen; normalized plot topology remains distinct from absolute automatic PlotArea placement and complete raster equality
Remaining combinations and appearance
The original two-series profile is extended by the separate combined axis-role profile, including finite secondary Bar, other primary/secondary Scatter pairs and multiple series
Smoothing, date/logarithmic/reversed axes, unrepresented crossings, manual ChartML layouts and combined trendlines or error bars remain outside these finite profiles
Preserved ChartML still passes the existing represented-appearance gate; arbitrary native appearance does not become capturable merely because Excel can open the file, and discarding preserved XML is not a supported bypass
The existing categorical Column/Line/Area, concentric Doughnut and standalone Scatter/Bar profiles retain their own contracts; Classic combination expansion and broader original B7 requirements remain separate work