Chart foundation

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.

Composition

<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.

Styling and accessibility

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.