Skip to content

@sqlrooms/mosaic / ChartSettingsPanelProps

Type Alias: ChartSettingsPanelProps ​

ChartSettingsPanelProps = object

Props for the ChartSettingsPanel component.

Properties ​

dataTable ​

dataTable: DataTable | undefined

The data table used by the chart


config ​

config: ChartConfig

Current chart configuration


onConfigChange ​

onConfigChange: (config) => void

Callback when chart configuration changes

Parameters ​

ParameterType
configChartConfig

Returns ​

void


onTableChange ​

onTableChange: (table) => void

Callback when the selected data table changes

Parameters ​

ParameterType
tableDataTable

Returns ​

void


title? ​

optional title?: string

Optional title/caption for the chart


onTitleChange? ​

optional onTitleChange?: (title) => void

Callback when the chart title changes

Parameters ​

ParameterType
titlestring

Returns ​

void


readOnly? ​

optional readOnly?: boolean

Whether settings should be non-mutating


onClose? ​

optional onClose?: () => void

Optional callback to close the host settings panel

Returns ​

void