zero.appdocs

Chart

Presentations v1.0 zero-schema

The unified chart: pick a Type and feed it one normalized data shape. Replaced the separate BarChart, LineChart, PieChart, and CandlestickChart components.

Required fields

PresentationType Type

Properties

PresentationType string required
A chart of the given Type over Data rows or rows fetched from Url.
Allowed Chart
Type string required
Which chart to render.
Allowed Bar Line Pie Candle
Data array optional
Inline rows: {Label, Value} for Bar/Line/Pie (Line also accepts plain numbers), {Label, Open, High, Low, Close} for Candle.
Url string optional
Endpoint returning the rows at runtime; used when Data is absent.
Title string optional
Caption rendered above the chart.
Color string, object optional
Primary series color (pie slices rotate hues from it). Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
BackgroundColor string, object optional
Background behind the chart. Accepts a color name, the "primary" token, a #hex string, or a gradient object ({"Colors": [...], "Type": "Linear"|"Radial"|"Sweep"}).
ShowGrid boolean optional
Show grid lines. Defaults to true.
ShowLabels boolean optional
Show axis/slice labels from each row's Label. Defaults to true.
Height number, object optional
Chart height in logical pixels. Defaults to 220. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).
IsCurved boolean optional
Line type only: smooth the line.
StrokeWidth number, object optional
Bar/line thickness. Accepts a responsive value map ({"sm": …, "md": …, "lg": …}).