Live example:
app/demo/states.tsx
in the example app.Loading
While you wait for data, passloading to render a breathing-line placeholder.
Empty state
When there are fewer than two samples andloading is false, the chart shows an empty shell
with a label. Customize the label with emptyText.
Formatting values & time
formatValue and formatTime control the text on axes, the badge, and tooltips. They run on the
UI thread, so they must be worklet-safe — mark them with the "worklet" directive and keep
them pure (no JS-thread closures).