@sqlrooms/mosaic / ChartBuilderTemplate
Interface: ChartBuilderTemplate
Describes a chart builder template that generates Mosaic JSON specs
Properties
id
id:
string
Unique identifier
icon
icon:
ComponentType<{className?:string; }>
Icon component
description
description:
string
Short description of what this builder creates
fields
fields:
ChartBuilderField[]
Field selectors the user must fill in
createSpec()
createSpec: (
tableName,values) =>Spec
Generate a Mosaic spec from table name and selected field values
Parameters
| Parameter | Type |
|---|---|
tableName | string |
values | Record<string, string> |
Returns
Spec
