Class LaravelUi5\Core\Ui5\Dashboard\Emitters\ChartEmitter

final
readonly
implements EmitterInterface

Default emitter for a {@see Ui5ChartInterface} — resolves the chart's getRequiredSlots() against the parameter pipeline (via {@see EmitContext::$pipeline}) and hands the bound slots together with the request's {@see EmitContext::$context} to the chart's {@see \LaravelUi5\Core\Ui5\Capabilities\ChartProviderInterface}, which returns the {@see Chart} DTO — a sap.f.Card-shaped envelope wrapping an inner {@see \LaravelUi5\Core\Ui5\Controls\Lux\ChartCanvas}.

Header auto-population (Phase 4, D9). If the provider returned a Chart with header: null, the emitter constructs a {@see Header} from the artifact's getTitle() (→ title) and getDescription() (→ subtitle) and substitutes it via {@see Chart::withHeader()}. Providers that want a custom header (status text, icon, timestamp) pass an explicit Header through their Chart constructor; the emitter leaves it alone.

Structurally identical to {@see TileEmitter} — same constructor shape (typed-artifact-only), same emit() pattern (resolve slots, delegate to the provider, return its DTO). The post-call header substitution is the one Chart-specific responsibility this emitter carries.

Methods