Embed Charts
Chirpier provides hosted event embeds for rendering public event charts outside the main web app.
Typical flow:
- Choose the public
eventIdto embed. - Optionally provide a
shareTokenif the embed should be scoped through a share link. - Render the hosted runtime in an iframe with
@chirpier/chartsor@chirpier/embed. - Configure the embedded experience with
state, sizing, and theme options. - React to rendered, resize, interaction, and error events in the host app.
Prefer bare usage in code examples. Wrap the embed only when the host app needs its own card, title, placeholder, or branded empty state.
Supported chart experiences:
state.view: "timeseries"withstate.variant: "line"state.view: "timeseries"withstate.variant: "bar"state.view: "summary"state.view: "tracker"
Core configuration options:
state.range:1h,1d,1w,1mstate.aggregate:sum,averagestate.compare: compare current range to the previous periodstate.header: show or hide the event headerstate.tracker.conditionandstate.tracker.threshold: tracker rule settingstheme:light,dark,systemwidth,height,minHeight,maxHeight,aspectRatioautoResizeorresizeMode:auto,fixed,fill
Use @chirpier/charts for React apps and @chirpier/embed for framework-agnostic usage.
Last updated on