@praxisui/charts 10.0.0-rc.6 → 10.0.0-rc.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -121,7 +121,9 @@ Use the component with either local data or governed remote execution:
121
121
 
122
122
  - `dataSource.kind = 'local'`: the chart consumes rows supplied in `dataSource.items` or the `data` input.
123
123
  - `dataSource.kind = 'remote'`: the chart emits `queryRequest`, then uses a host `remoteDataResolver` or the default `PraxisChartStatsApiService` path for `praxis.stats`.
124
- - `praxis.stats/comparison`: analytics projections materialize one `Current` and one `Previous` series per governed metric. The starter remains responsible for period resolution, bucket union, delta and baseline semantics; charts only render the returned period values.
124
+ - `praxis.stats/comparison`: analytics projections materialize one `Current` and one `Previous` series per governed metric, while `PraxisChartStatsApiService` also preserves backend `delta`, `deltaPercent`, and `baselineMissing` values. Configurable display via `comparison` (`showDelta`, `showDeltaPercent`, `showInTooltip`, `showInLabels`) surfaces variation cleanly in tooltips, compact non-overlapping series labels, the accessible table, and enriched KPI cards without cluttering `390px` viewports.
125
+ - Reference annotations (`referenceLines`, `referenceBands`, `targetMarkers`): renderer-neutral thresholds, tolerance bands, and coordinate milestones bound to governed semantic tones (`info`, `success`, `warning`, `danger`, `critical`, `neutral`) and surfaced in both ECharts (`MarkLine`, `MarkArea`, `MarkPoint`) and the accessible structured data panel.
126
+ - Declarative scalability & renderer options (`dataZoom`, `axisScaleBreak`, `labelLayout`, `renderer`): temporal/axis window zoom (`DataZoomComponent`), automatic or explicit ECharts 6 outlier scale breaks (`AxisBreak`), automatic label overlap prevention (`LabelLayout`), and `'canvas' | 'svg'` renderer selection (`SVGRenderer`) without exposing raw engine options.
125
127
  - `queryContext`: primary input for dynamic-page orchestration; filters, sort and limit are merged into remote requests where supported.
126
128
  - `filterCriteria`: accepted as a compatibility bridge, but new integrations should use `queryContext`.
127
129
  - `pointClick`: raw renderer-neutral point evidence. Configured click actions are emitted separately through `pointAction`.
@@ -157,14 +159,15 @@ The public contract is `PraxisChartConfig` or the canonical `PraxisXUiChartContr
157
159
 
158
160
  The structured alternative is automatic. It does not add an accessibility field to `PraxisChartConfig` or `x-ui.chart`, and custom engines remain responsible for an accessible visual rendering while the component-level data alternative remains renderer-neutral.
159
161
 
160
- Standalone charts render that toggle inside the component. When the chart is loaded by `WidgetShell`, it contributes the same stateful action to the shell toolbar and suppresses the duplicate internal control. The visual canvas becomes hidden and inert while the opaque structured-data surface is active, so the two representations never compete visually or interactively.
162
+ Standalone charts render that toggle inside the component. When the chart is loaded by `WidgetShell`, it contributes the same stateful action to the shell toolbar and suppresses the duplicate internal control. When hosted inside `PraxisAnalyticsPresentationComponent` with an eligible `analytic-table` family, the presentation sets `dataAlternativeMode="external"` and `externalDataAlternativeLabel` so the compact switcher becomes the single table authority, suppresses the duplicate chart trigger/action, updates the ECharts ARIA description to point at that control, and shares raw `/stats/*` responses across families. Setting `dataAlternativeMode="none"` suppresses the built-in panel and omits the table hint from the ARIA description. The visual canvas becomes hidden and inert while the opaque built-in structured-data surface is active, so the two representations never compete visually or interactively.
161
163
 
162
164
  Supported canonical kinds are `bar`, `horizontal-bar`, `line`, `area`, `stacked-bar`,
163
- `stacked-area`, `combo`, `pie`, `donut`, `scatter`, `funnel`, `pyramid`, `treemap`, and `gauge`. Funnel,
164
- pyramid, and treemap require one categorical dimension and exactly one non-negative metric. Funnel
165
- and pyramid preserve the canonical row order; pyramid reverses the visual direction without sorting
166
- stages by value. Treemap materializes the same governed category/metric buckets as proportional
167
- rectangles without introducing hierarchy or engine-specific options into the public contract.
165
+ `stacked-area`, `combo`, `pie`, `donut`, `scatter`, `funnel`, `pyramid`, `treemap`, `sunburst`,
166
+ `sankey`, `radar`, `gauge`, `heatmap`, `boxplot`, `calendar`, and `waterfall`. Funnel,
167
+ pyramid, and flat 1D treemap require one categorical dimension and exactly one non-negative metric. Funnel
168
+ stages by value. Flat 1D treemap preserves the governed category/metric bucket contract untouched,
169
+ while multilevel `treemap` and `sunburst` share an ordered `dimensions[]` / `path` / `parentId` /
170
+ `children` hierarchical tree builder (see [`ADR-0003`](./docs/adr/0003-hierarchical-sunburst-treemap-and-sankey-links.md)).
168
171
  Gauge requires one dimension, exactly one metric and an explicit finite `gauge.scale` whose `max`
169
172
  is greater than `min`. A remote gauge uses `praxis.stats` `group-by` with
170
173
  `source.options.limit = 1`; zero or multiple buckets, non-finite values and values outside the
@@ -172,34 +175,54 @@ declared scale fail closed instead of being clamped. Pointer, ticks and angles r
172
175
  details and are not part of the public contract.
173
176
  Scatter accepts one or two metrics. With one metric, the first dimension is X and the metric is Y.
174
177
  With two metrics, the first dimension remains the grouped bucket identity while the first and second
175
- metrics map to X and Y; the canonical mapper derives the multi-metric stats request.
178
+ metrics map to X and Y; the canonical mapper derives the multi-metric stats request, and
179
+ `AnalyticsChartConfigAdapterService` automatically maps `intent: 'correlation'` projections to
180
+ `scatter`.
181
+ Heatmap requires exactly two dimensions (X and Y matrix axes) and one numeric metric, rendering a
182
+ continuous `visualMap` gradient that distinguishes literal `0` values from missing cells (`null`).
183
+ Boxplot renders category quartile distributions (`min`, `Q1`, `median`, `Q3`, `max`) plus Tukey `1.5 × IQR` outliers and sample size (`n`); remote `praxis.stats` queries request `MIN`, `PERCENTILE_25`, `MEDIAN`/`PERCENTILE_50`, `PERCENTILE_75`, `MAX` (plus optional `COUNT`) while preserving LGPD `suppressed`/`suppressedBucketCount`/`minBucketCount` governance.
184
+ Calendar renders daily intensity heatmaps across a configurable `range` (`'YYYY'`, `'YYYY-MM'`, `'YYYY-S1'`, `'YYYY-S2'`, `'YYYY-H1'`, `'YYYY-H2'`, or `[startDate, endDate]`) from `praxis.stats` `timeseries` (`DAY`) or active intervals `[dtini, dtfim]`, strictly separating `0` (literal zero) from `null` (omitted/suppressed) and missing days, with accessible dark/light token palettes and `crossFilter` emitting `'YYYY-MM-DD'`.
185
+ Waterfall renders ordered cumulative flow steps (`start`, `increase`, `decrease`, `subtotal`, `total`) preserving declared input order, stacked transparent base bars, step connectors, and explicit `+`/`-`/`=` formatted deltas without double negatives (`-R$ -...`).
186
+ In `AnalyticsChartConfigAdapterService`, non-comparison multi-metric projections also infer
187
+ `combo` with a right-hand secondary axis (`axis: 'secondary'`) whenever `secondaryMetrics`
188
+ explicitly requests `'secondary'` or diverges in unit, format family, or aggregation scale, while
189
+ semantic hints (`sankey`, `sunburst`, `treemap`, `radar`, `heatmap`, `scatter`, `boxplot`, `calendar`, `waterfall`),
190
+ `correlation` intents, or quartile metric bundles materialize directly across `distribution`, `trend`, `composition`, and `correlation` intents.
176
191
 
177
192
  ## Governed chart/table presentation
178
193
 
179
- `PraxisAnalyticsPresentationComponent` materializes an existing `x-ui.analytics` projection as a
180
- chart or analytic table. The projection is selected by exact `projectionId`; the component reuses
181
- `AnalyticsPresentationResolver` and the official Charts/Table adapters instead of rebuilding stats
182
- requests.
194
+ `PraxisAnalyticsPresentationComponent` materializes an existing `x-ui.analytics` projection across
195
+ `chart`, `analytic-table`, `kpi`, and `summary-list`. When `analytics.projections` publishes more
196
+ than one projection, the toolbar exposes an accessible projection selector that preserves active
197
+ presentation family eligibility and `queryContext`. The projection is selected by exact
198
+ `projectionId`; the component reuses `AnalyticsPresentationResolver` and the official Charts/Table
199
+ adapters instead of rebuilding stats requests.
183
200
 
184
201
  ```html
185
202
  <praxis-analytics-presentation
186
203
  [analytics]="analytics"
187
204
  projectionId="supplier-procurement-funnel"
188
- [availableFamilies]="['chart', 'analytic-table']"
205
+ [availableFamilies]="['chart', 'analytic-table', 'kpi', 'summary-list']"
189
206
  [preferredFamily]="savedPreference"
190
207
  [queryContext]="queryContext"
191
208
  (presentationChange)="rememberTemporarily($event)"
192
209
  />
193
210
  ```
194
211
 
212
+ When rendered inside a `<praxis-widget-shell>` via `DynamicWidgetLoaderDirective`, `PraxisAnalyticsPresentationComponent` implements `WidgetShellActionContributor` to promote the eligible family switcher (`chart`, `analytic-table`, `kpi`, `summary-list`) into the shell header as an atomic segmented group (automatically falling back to icon-only with tooltips and then to a labeled radio section inside the `More actions` overflow menu when header width is constrained). Configure placement and display with `controlsPlacement` (`'auto' | 'shell-header' | 'inline'`, default `'auto'`) and `controlsDisplay` (`'auto' | 'icon-label' | 'icon-only' | 'menu'`, default `'auto'`). Standalone renders, hosts with `showHeader: false`, or `controlsPlacement="inline"` automatically keep the inline family toolbar rendered, while multi-projection selectors stay inline in the widget body so both controls remain independent.
213
+
195
214
  Choice precedence is temporary user choice, persisted `preferredFamily`, then projection hints.
196
215
  `availableFamilies` must already reflect host policy/capabilities; the runtime intersects it with
197
216
  installed and semantically eligible renderers. Incompatible preferences fail closed. Switching
198
- renderer may execute the same canonical query again; when projection, family or `queryContext`
199
- changes, the component unsubscribes the previous Table/KPI request so the HTTP transport is
200
- aborted instead of merely ignoring a stale result. KPI is eligible for canonical `group-by`
201
- projections with exactly one primary metric. Summary-list remains unavailable until it has a
202
- canonical remote renderer.
217
+ between `chart`, `analytic-table`, `kpi`, and `summary-list` reuses the shared in-memory
218
+ raw `/stats/*` response cache (`rawStatsValueCache` LRU up to 16 entries / `inFlightRawStats` keyed by normalized
219
+ `resourcePath + projectionId + statsPath + statsRequest + filterExpression + runtimeContextRevision`) whenever the remote stats
220
+ contract allows, avoiding duplicate HTTP calls for the same slice while invalidating cache entries and
221
+ cancelling in-flight cache writes when `EnterpriseRuntimeContextService.contextChanges$`, `analyticsChanged`, resource hydration, or destroy occurs. KPI is eligible for canonical
222
+ `group-by` and `comparison` projections with one primary metric, enriched with comparison delta
223
+ badges and `<praxis-micro-visualization [interactiveContainer]="true">`. `summary-list` renders an
224
+ ordered, keyboard-accessible proportional summary list with normalized bar shares and comparison
225
+ delta badges when published by the projection's `preferredFamilies`.
203
226
 
204
227
  ## Canonical Chart Documents
205
228
 
@@ -257,6 +280,39 @@ follows the host. Palette inheritance is preserved. Explicit chart surface/backg
257
280
  and text colors remain authoritative; choosing them requires a coherent contrast pair.
258
281
  Changing the host theme updates inherited colors without modifying the chart document.
259
282
 
283
+ Existing color strings in palette arrays, metric/series colors, surface backgrounds,
284
+ text colors and gauge bands can reference host CSS custom properties (for example,
285
+ `var(--md-sys-color-primary, #1263b4)`). The default engine resolves them against the
286
+ chart host on every render and projects modern CSS colors such as OKLCH into sRGB
287
+ for Canvas. Explicit literal colors and palette overrides retain precedence. Missing
288
+ or invalid tokens use bounded engine defaults; gauge bands retain their semantic
289
+ tone fallback. Persisted documents and source data remain unchanged. A string
290
+ `theme.palette` in `x-ui.chart` still names a registered Praxis palette; use an array
291
+ for individual CSS colors.
292
+
293
+ Palette array items must be non-empty strings; malformed persisted values are
294
+ rejected by canonical validation with the item path. Direct runtime color fields
295
+ also fall back safely when untyped JSON supplies another value type. Color probes
296
+ isolate their measured color from host CSS rules, including rules with `!important`.
297
+
298
+ The engine also derives tooltip background, foreground and border from the host's
299
+ existing popover roles, with card/foreground and Material fallbacks. Tooltip
300
+ formatting, triggers and disabled state keep their authored semantics; these
301
+ computed appearance values are transient and never saved into the chart document.
302
+
303
+ ### Governed Motion and Data Transitions
304
+
305
+ `PraxisChartConfig.motion` and `PraxisXUiChartContract.motion` govern both initial entrance animations and data/filter transition animations without exposing raw engine timing properties:
306
+
307
+ - `enabled: false`: disables initial and update animations (`animationThreshold: 0`).
308
+ - `preset: 'subtle'`: fast, understated corporate cadence (`220ms` entrance, `180ms` update, `cubicOut`, `animationThreshold: 1000`).
309
+ - `preset: 'standard'` (default when motion is enabled): balanced analytical transition (`450ms` entrance, `320ms` update, `cubicOut` / `cubicInOut`, `animationThreshold: 1500`).
310
+ - `preset: 'expressive'`: emphasized storytelling cadence (`750ms` entrance, `520ms` update, `quinticOut` / `cubicInOut`, `animationThreshold: 2000`).
311
+
312
+ When `queryContext`, `filterCriteria`, or `data` changes for the same governed chart structure and remote resource identity, the default ECharts adapter updates the existing instance with `{ notMerge: false, replaceMerge: ['series'] }` so bars, lines, slices, and gauges interpolate smoothly between filter states. Structural or chrome mutations (chart kind, axis bounds, legend/tooltip visibility, titles, or switching to a different remote `resourcePath`/`resourceKey`) force a clean state reset (`setOption(option, true)` or canvas teardown) so stale options never leak across resources.
313
+
314
+ `PraxisChartComponent` also respects `@media (prefers-reduced-motion: reduce)` at the host level, disabling visual transitions automatically when the operating system requests reduced motion. In `PraxisChartConfigEditor`, the Motion tab provides a **Simulate transition** action (`simulateMotionTransition()`) and automatically previews preset changes on the live chart.
315
+
260
316
  ## Micro Visualizations
261
317
 
262
318
  Transparent charts inside `WidgetShell` inherit the shell foreground, including fixed dark finishes in a light application theme. The chart's opaque accessible-data panel pairs its own background with the corresponding foreground. Explicit chart text colors keep precedence.
@@ -276,28 +332,36 @@ The table-safe kinds currently aligned with `PraxisPresentationVisualizationKind
276
332
  - `bullet`
277
333
  - `delta`
278
334
  - `processFlow`
335
+ - `waterfall` (compact flow bridges for cards and `kpiBand`)
279
336
 
280
- The component does not instantiate ECharts. It renders lightweight HTML/CSS from `PraxisPresentationVisualizationConfig`
337
+ The component does not instantiate ECharts. It renders lightweight HTML/CSS/SVG from `PraxisPresentationVisualizationConfig`
281
338
  and falls back to `fallbackText` when the visualization kind cannot be rendered for the current compact surface.
282
- Use `points` as the canonical numeric series for `line`, `area`, `column`, and `comparison`;
283
- use `segments` for `stackedBar`, `thresholds` for `bullet`, and `items` for item/step-oriented visualizations such as `processFlow`.
339
+ Use `points` as the canonical numeric series for `line`, `area`, `column`, and `comparison` (accepting raw numbers or `{ value, label }` points);
340
+ use `segments` for `stackedBar` (with optional `title` and `legend: true` on non-`table-cell` surfaces), `thresholds` and `targetLabel` (e.g., `'Meta'`, `'Teto'`, `'Limite'`, `'Alerta'`) for `bullet` and `delta`, and `items` for item/step-oriented visualizations such as `processFlow` and `waterfall` (with optional `role`: `'start' | 'increase' | 'decrease' | 'subtotal' | 'total'`).
341
+ For `line`, `area`, and `column`, optional `min`/`max` bounds control the vertical domain, `target` and `baseline` render dashed horizontal reference lines inside the SVG plot, and `valueSuffix` appends a unit suffix to readouts and endpoint labels.
342
+ Floating hover/focus telemetry readouts (`data-micro-readout`) are rendered via `PraxisMicroTooltipOverlayService` directly in `document.body` / HTML Top Layer so ancestor `overflow: hidden`, sticky headers, virtual scroll viewports, and card `transform` states never clip or duplicate percentages.
343
+ On non-`table-cell` surfaces (`list-item`, `object-header`, `card-summary`, `form-presentation`), multi-item visualizations (`stackedBar`, `comparison`, `line`, `area`, `column`, `processFlow`) expose a single keyboard stop (`tabindex="0"`) on the figure container supporting `ArrowLeft`/`ArrowRight`/`ArrowUp`/`ArrowDown`/`Home`/`End`/`Escape` scrubbing with polite `aria-live` announcements, while `surface: 'table-cell'` or `[interactiveContainer]="true"` (when nested inside a clickable KPI card) keeps zero internal `tabindex` stops so grid/card keyboard navigation remains unobstructed.
284
344
  Rich charts still use the canonical `x-ui.chart` document flow above; micro visualizations are the lightweight presentation contract for dense cells, list items, object headers, card summaries and form presentation surfaces.
285
345
 
286
- Neutral micro visualizations inherit foreground from their container unless the existing `--prx-micro-text-color` token overrides it. Radial indicators with `surface: 'card-summary'` and `size: 'md'` or `'responsive'` render at 6rem; table-cell indicators retain their compact 24px geometry. This materializes existing surface/size semantics without changing the configuration shape.
346
+ Neutral micro visualizations inherit foreground from their container unless the existing `--prx-micro-text-color` token overrides it. Sculpted radial rings (`radial`) and sector dials (`harveyBall`) preserve over-capacity readouts (`>100%`) while capping the visual SVG arc to `100%`; `radial` with `surface: 'card-summary'` renders at `3rem` (`size: 'sm'`) with side caption/target metadata or `5.5rem` (`size: 'md'` / `'responsive'`) with an inner medallion subtitle, while `table-cell` indicators retain their compact `24px` geometry.
287
347
 
288
348
  The Dynamic Page Lab's preset studio includes “Testar com componentes reais”: official Table, Chart, Dynamic Form and Micro Visualization components using identified local demonstration data. It supports changing shell finishes, local table selection/pagination, chart data inspection, form editing/read-only mode and supported demonstration states. This fixture does not save business records.
289
349
 
290
350
  ## Authoring Surface
291
351
 
292
- `PraxisChartConfigEditor` is the initial editor shell for canonical `x-ui.chart` documents. It consumes governed resources, fields and targets and emits structured apply/save/reset events. The authoring manifest is exported as `PRAXIS_CHARTS_AUTHORING_MANIFEST` for backend/tooling workflows that need executable chart-edit operations.
352
+ `PraxisChartConfigEditor` is the initial frameless editor shell for canonical `x-ui.chart` documents. It consumes governed resources, fields and targets, provides frameless authoring for reference lines/bands/markers, scalability (`dataZoom`, `axisScaleBreak`, `labelLayout`, `renderer`), comparison delta visibility, and bidirectional `visual ↔ JSON` round-trip, and emits structured apply/save/reset events. The authoring manifest is exported as `PRAXIS_CHARTS_AUTHORING_MANIFEST` for backend/tooling workflows that need executable chart-edit operations.
353
+
354
+ The direct runtime host opens `PraxisChartWidgetConfigEditor` with the existing `{ inputs }` envelope so the canonical document, derived `data` and separate `queryContext` share the Apply/Save boundary. Apply updates the runtime and emits `chartDocumentApplied`; Save emits `chartDocumentSaved`. Both document outputs retain their `PraxisXUiChartContract` shape. `chartDocumentPatchChange` carries independent snapshots in `inputPatch.chartDocument`, `data` and `queryContext` when applicable, plus mapped `config` for a config-driven host. Switching to `praxis.stats` clears local data precedence with `inputPatch.data: null`; clearing query context uses `queryContext: null`.
293
355
 
294
- For the direct runtime editor, Apply updates the chart and emits `chartDocumentApplied`; Save emits `chartDocumentSaved`. Both also emit `chartDocumentPatchChange` with an independent `inputPatch.chartDocument` snapshot for dynamic widget hosts. Dynamic Page/Page Builder updates its authored page, so Apply followed by Save Page preserves the canonical document. Apply alone does not persist the page remotely. Unrelated widget inputs and transient catalogs remain owned by their existing host/context boundaries.
356
+ The accepted editor state belongs to the opening owner inputs. An owner may echo the latest accepted value of each input one at a time, including fields omitted from a later patch; equivalent clones do not imply a new owner. Hosts must apply patches in order: an older value of the same input delivered after a newer accepted value is indistinguishable from an external override and is treated as one. A distinct external input change replaces the local document/data/context state, and old editor events are rejected even before the next render. Closing or destroying the owner releases the editor subscriptions. Cancel discards unapplied editor work; it does not undo a previous Apply. Dynamic Page/Page Builder can materialize the patch in its authored page, but external persistence remains the host's responsibility. Apply or Save alone is not proof of remote persistence; the standalone showcase keeps runtime state only. Transient catalogs remain outside the persisted input envelope.
295
357
 
296
358
  `ChartResourceCapabilityCatalogAdapter` derives resource operations and eligible dimension, time and metric options directly from `ResourceCapabilitySnapshot`, including fail-closed comparison eligibility.
297
359
 
298
- Applications should install `providePraxisCharts()` once. The registered `ComponentDocMeta.configEditor.contextResolver` materializes the editor context without making Page Builder own Chart semantics. Initial resolution groups `/schemas/catalog` endpoints by the stable `resourceKey`, exposes that value as `availableResources[].id`, and keeps the catalog's governed root-relative resource path as `availableResources[].path`. A selected `praxis.stats` source is normalized to that operational path before save; the discovery id is never persisted as an executable URL.
360
+ Applications should install `providePraxisCharts()` once. The registered `ComponentDocMeta.configEditor.contextResolver` materializes the editor context without making Page Builder own Chart semantics. Initial resolution groups `/schemas/catalog` endpoints by the stable `resourceKey`, exposes that value as `availableResources[].id`, and keeps the catalog's governed root-relative resource path as `availableResources[].path`. Coexisting `/stats/capabilities` endpoints do not conflict with the canonical collection `/capabilities` endpoint; `chart-resource-capabilities-endpoint-ambiguous` is emitted only when multiple distinct collection capability paths compete for the same resource. A selected `praxis.stats` source is normalized to that operational path before save; the discovery id is never persisted as an executable URL.
299
361
 
300
- Capabilities are loaded lazily from the exact catalog-published endpoint only after resource selection. Concurrent catalog and per-resource capability reads are deduplicated in flight and bounded by a 10-second timeout, but successful permission-sensitive projections are not cached across requests until the host publishes a canonical authentication/context epoch. Denied, unavailable, ambiguous, stale and empty evidence fails closed, and later requests remain retryable. `canonicalOperations` gates group-by, timeseries and distribution, while `stats.fields[]` gates dimensions, metrics, aggregations and exact `distributionModes` eligibility for terms versus histogram. `/schemas/filtered` enrichment of field titles, types and `x-ui` remains a later schema-flow gate; capabilities remain the authority for eligibility.
362
+ Capabilities are loaded lazily from the exact catalog-published endpoint only after resource selection. Concurrent reads are deduplicated in flight, with a 30-second catalog timeout and a 10-second per-resource capability timeout, but successful permission-sensitive projections are not cached across requests until the host publishes a canonical authentication/context epoch. Denied, unavailable, ambiguous, stale and empty evidence fails closed, and later requests remain retryable. In `PraxisChartWidgetConfigEditor`, authoring context diagnostics are grouped by diagnostic code with occurrence counts, scope impact, and expandable details (affected resource paths, next steps, and technical code) without dirtying the editor draft. `canonicalOperations` gates group-by, timeseries and distribution, while `stats.fields[]` gates dimensions, metrics, aggregations and exact `distributionModes` eligibility for terms versus histogram. `/schemas/filtered` enrichment of field titles, types and `x-ui` remains a later schema-flow gate; capabilities remain the authority for eligibility.
363
+
364
+ When `source.kind === 'derived'`, `PraxisChartConfigEditor` and `PraxisChartWidgetConfigEditor` expose local dataset authoring (`inputs.data` / `localData`) in the Data tab, align the live preview with the widget's local records (falling back to an explicitly labeled synthetic sample only when local records are empty), and validate predictable runtime constraints before save—including single-bucket consolidation and scale range checks for `gauge`. Consolidation preserves the authored aggregation: SUM40+80 remains120, and a gauge scale0..100 reports `gauge-value-out-of-range` until the author changes the scale, data or aggregation explicitly. The editor never substitutes an average or clamps the value to make it fit. For `pie` and `donut` charts, omitting `labels` preserves the engine's default callout visibility (`labels.enabled: undefined`), while explicit `labels: false` or `labels: { enabled: false }` hides both slice labels and leader lines (`labelLine: { show: false }`).
301
365
 
302
366
  Target choices come only from existing top-level composition links whose source is the current Chart and whose exact structured source event port is public and non-deprecated. Raw `pointClick` evidence never authorizes a configured action; `events.pointClick` uses `pointAction`. Directly compatible widget ports are admitted; an explicit `transform.output.semanticKind` is inspected only as provisional local evidence. That local check does not replace a transform-output projection materialized and validated by Core, which remains a P2 gate. Destinations are limited to compatible public, non-deprecated widget inputs or explicitly writable declared page state. Each target carries `events[]`, so a link from `crossFilter` cannot authorize the same target for `pointClick`, `selectionChange` or `drillDown`; routes, nested ports, global actions, undeclared state and unconnected widgets are not synthesized.
303
367
 
@@ -374,9 +438,32 @@ a dirty draft, without emitting Save or asking to save a target that no longer e
374
438
  A pending opening is cancelled as well. This applies to the chart-owned editor; other
375
439
  consumers must explicitly supply their own owner to adopt the same lifecycle.
376
440
 
377
- ### Cor dos nomes dos eixos
441
+ ## `<praxis-timeline-lanes>` — Swimlane Chronological Timeline
442
+
443
+ `<praxis-timeline-lanes>` (`PraxisTimelineLanesComponent`) is the governed `@praxisui/charts` component for continuous intervals across synchronized swimlanes with an accessible table alternative (`timeline | split | table`), non-chromatic conflict detection, and open-ended period support (`endDate == null`).
444
+
445
+ - **Contract & Metadata:** `PraxisTimelineLanesConfig` (`x-ui.timelineLanes`), ports `config`, `queryContext`, `barSelect`, `rangeFilter`, `conflictClick`, and `actionClick` registered by `providePraxisTimelineLanesMetadata()` (included in `providePraxisCharts()`).
446
+ - **Datasources:** accepts inline items (`items` / `dataSource.data`), a single resource endpoint (`resourcePath` + `PraxisDataQueryContext`), or parallel per-lane sources (`dataSource.laneSources[]`).
447
+ - **Governance & Editor:** conditional rules via `PraxisJsonLogicService`, actions via `visibleWhen`/`disabledWhen`/`hateoasRel`/`quickView`/`globalAction`, persistence through `ASYNC_CONFIG_STORAGE`, and bidirectional frameless `visual ↔ JSON` editor (`PraxisTimelineLanesConfigEditorComponent`).
448
+ - **Detailed docs:** see [`praxis-timeline-lanes.json-api.md`](./src/lib/praxis-timeline-lanes.json-api.md) and [`praxis-timeline-lanes-landing.md`](./docs/praxis-timeline-lanes-landing.md).
449
+
450
+ ### Axis Title Colors
451
+
452
+ The ECharts adapter applies the effective foreground text color (`theme.textColor`) to both axis tick labels and axis names across cartesian axes, including secondary axes, horizontal orientations, and scatter plots without adding raw engine properties to the public contract. Final readability depends on keeping `theme.textColor` consistent with the configured chart background.
453
+
454
+ ## Multidimensional & Hierarchical Kinds (`sankey`, `sunburst` / multilevel `treemap`, `radar`)
455
+
456
+ Formalized in [`ADR-0003`](./docs/adr/0003-hierarchical-sunburst-treemap-and-sankey-links.md), [`praxis-chart.json-api.md`](./src/lib/praxis-chart.json-api.md), and [`praxis-charts-flow-hierarchy-radar-landing.md`](./docs/praxis-charts-flow-hierarchy-radar-landing.md):
457
+
458
+ - **`sankey` (Acyclic Flow & Cycle Guard):** accepts renderer-neutral `sankey.nodes` (`id`, `label`, `type`, `stage`) and `sankey.links` (`source`, `target`, `value`, `relation`, `evidence`) aligned with `<praxis-relationship-graph>` (`#668`), or 2D tabular aggregation (`sourceField`, `targetField`, `valueField`). Cycles and self-loops are detected deterministically before rendering, failing cleanly with an actionable recommendation to switch to `<praxis-relationship-graph>` (`#668`). Emits `crossFilter` on node and link clicks and exposes an accessible `Origem | Destino | Volume | %` table.
459
+ - **`sunburst` & multilevel `treemap`:** builds a proportional aggregated tree from ordered `dimensions[]` (`2+` levels, e.g. `['orgao', 'subempresa', 'setor']`) or explicit `path` / `parentId` / `children` data, keeping single-dimension 1D `treemap` configs unchanged. Supports interactive breadcrumb level zoom with `crossFilter` emission and hierarchical table fallback.
460
+ - **`radar` (Multidimensional Comparison vs. "Radar Preventivo"):** compares multiple series over `>= 3` indicators with explicit `[min, max]` bounds (`max > min`) and accessible tabular breakdown. **Semantic Disambiguation:** `kind = 'radar'` renders a geometric `RadarChart` comparing quantitative indicator axes; it must **not** be confused with business domain features/endpoints named **"Radar Preventivo"** (e.g. retirement eligibility or workforce vacancy monitoring, which map to KPIs, `gauge`, `bar`, `funnel`, or `<praxis-timeline-lanes>` unless explicitly plotting `>= 3` comparative `[min, max]` indicators).
461
+
462
+ ## Micro-KPI Strip, Monthly Normalization & Override Sanitization
378
463
 
379
- O adaptador ECharts aplica a cor efetiva de texto (`theme.textColor`) tanto aos valores quanto aos nomes dos eixos cartesianos, incluindo eixo secundário, orientação horizontal e dispersão. Essa projeção não cria opções de engine no contrato público nem altera dados ou formatação. A legibilidade final ainda depende da coerência entre a cor de texto e o fundo configurado.
464
+ - **`PraxisMicroKpiStripComponent` & `providePraxisMicroKpiStripMetadata()`:** Integrated into `PraxisAnalyticsCockpitComponent` using `switchMap`, bounded TTL caching isolated per enterprise context/tenant/user (`EnterpriseRuntimeContextService`, `cacheScope`, `WeakMap` fetcher identity), `retry()`/`invalidateCache()`, non-interactive `<div>` cards when a KPI filter is empty, non-clobbering merge of cockpit widget and KPI cross-filters, and `aria-live="polite"` announcements. Switching or toggling active KPI filters removes prior KPI filter keys cleanly without leaking stale criteria.
465
+ - **Monthly & Calendar Normalization:** `normalizeYearMonthToken` (`'YYYY-MM'`), `normalizeMonthlyFilterValues` (`['YYYY-MM']`), `expandMonthlyRangeToIsoDates` (`['YYYY-MM-01', 'YYYY-MM-lastDay']`), and date-part extractors validate UTC calendar dates for timestamps and ISO strings, rejecting impossible dates (such as February 31) and formatting date tokens in a single-pass tokenizer respecting quoted literals.
466
+ - **Visual Overrides & Projection Eligibility:** `sanitizeChartDocumentOverride` and `sanitizeChartDocumentOverridesMap` recursively strip `source`, `dataSource`, `query`, `data`, prototype-pollution keys, empty nested containers/arrays, and circular references across nested structures while preserving DAG-shared visual branches; projection selectors surface proactive family eligibility hints when dataset shape constrains available chart kinds and suppress misleading fallback indicators on the active projection.
380
467
 
381
468
  <!-- praxis-npm-catalog-links:start -->
382
469
  ## Official documentation and examples