@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
| Parameter | Type |
|---|---|
params | { artifactId?: string; tableName?: string; createArtifactIfMissing?: boolean; } |
params.artifactId? | string |
params.tableName? | string |
params.createArtifactIfMissing? | boolean |
Returns
object
| Name | Type |
|---|---|
artifactId | string |
tableName | string |
columns | ChartBuilderColumn[] |
createChart()
createChart: (
params) =>object
Parameters
| Parameter | Type |
|---|---|
params | { artifactId: string; tableName: string; title: string; config: any; } |
params.artifactId | string |
params.tableName | string |
params.title | string |
params.config | any |
Returns
object
| Name | Type |
|---|---|
panelId | string |
artifactId | string |
tableName | string |
title | string |
config | any |
