Skip to content

@sqlrooms/mosaic / ChartToolDeps

Interface: ChartToolDeps

Dependencies injected into chart tool creation functions. Provides the resources and operations needed to create charts.

Properties

resolveResources()

resolveResources: (params) => object

Parameters

ParameterType
params{ artifactId?: string; tableName?: string; createArtifactIfMissing?: boolean; }
params.artifactId?string
params.tableName?string
params.createArtifactIfMissing?boolean

Returns

object

NameType
artifactIdstring
tableNamestring
columnsChartBuilderColumn[]

createChart()

createChart: (params) => object

Parameters

ParameterType
params{ artifactId: string; tableName: string; title: string; config: any; }
params.artifactIdstring
params.tableNamestring
params.titlestring
params.configany

Returns

object

NameType
panelIdstring
artifactIdstring
tableNamestring
titlestring
configany