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 by way of 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 plus its own numeric horizontal and vertical scales
The two series may have differing 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 colour |
| Secondary markers | Explicit circle markers with explicit fill and border colours |
| 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 the 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 demand explicit maximum crossings and keep 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 match its pair
Unspecified authored identities take 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, whilst ZOrder controls paint order; equal ZOrder values keep stable group order and never 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 normalised 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 never substitutes those numbers into the primary category scale
Straight connecting segments and circle markers keep 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 the package and normally reopen it, then use CaptureXLSPortableRenderSnapshot to capture its represented appearance; the returned snapshot owns its scene and can be serialised 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 so the resolved updated caches are retained, then captures those values
Capture consumes complete stored chart caches and never implicitly calculates worksheet formulas
Capture copies the represented model and configuration ahead of 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 a partial scene is published; the source keeps its current state and can be captured again once the refused condition has been corrected
Finite bounds
This profile has exactly two plot groups and two series; each dense cache keeps 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 satisfy 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 never inferred from missing values or category labels
Fixed numeric-axis state is taken into the initial plan charge, and cache/text admission precedes data-dependent allocations; these limits establish no 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 each 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 makes no claim that Linux executed the new combined-model recorder
Native observations establish normal opening, retained series and axis values, image output and edited SaveAs/reopen; normalised plot topology stays 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, taking in 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 all sit outside these finite profiles
Preserved ChartML still passes the existing represented-appearance gate; arbitrary native appearance does not become capturable simply because Excel can open the file, and discarding preserved XML is not a supported way round
The existing categorical Column/Line/Area, concentric Doughnut and standalone Scatter/Bar profiles keep their own contracts; Classic combination expansion and broader original B7 requirements remain separate work