Skip to content

@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

ParameterType
tableNamestring
valuesRecord<string, string>

Returns

Spec