qds-chart is the shared presentation frame for QDS visualizations. It provides titles, descriptions, legends, identity-based colors, text-only hover details, loading/error/empty states, named slots, and resize notifications. It contains no financial rules or data fetching. qds-stacked-timeline is its first D3 consumer.
slot="plot", controls in slot="tools", and accessible selected-data content in slot="details".series to { id, label, color? }[]. Stable IDs use the same default color across chart instances and reordered inputs. The finite default palette can repeat; applications can supply a shared explicit entity/color mapping for dense datasets. Override --qds-chart-series-1 through --qds-chart-series-6 to theme the default palette.activeSeriesId highlights an entity. Legend activation emits qds-series-focus with { seriesId }, or null to clear. It does not remove or renormalize series.tooltip to { title, lines } or null. Content is rendered as text, including untrusted labels.qds-chart-resize with { width, height } to redraw a renderer when its viewport changes. Observers disconnect when the element is removed.loading, error, and empty-message hide stale plot, legend, controls, tooltip, and details.<qds-chart title-text="Expense allocation" description="Select a flow to inspect its contributing transactions.">
<svg slot="plot" role="img" aria-label="Expense flows"></svg>
<div slot="details">Application-supplied accessible detail.</div>
</qds-chart>
QDS uses native web components and bundles only the D3 modules needed by its renderers. The generated Quangular wrapper is QdsChartComponent, selector q-qds-chart. This D3 dependency is an intentional extension to the older dependency-free component guidance.
Typography, backgrounds, text, borders, focus states, and series defaults use QDS custom properties. Legend controls have text labels, pressed states, visible keyboard focus, and 44-pixel touch targets. Color supplements labels and selected-data detail. A renderer remains responsible for its data geometry, keyboard model, and accessible description.