Interface · v2.7.0
NgbGridChartConfig
Configuration for the Grid to Chart composite widget.
Import
import type { NgbGridChartConfig } from '@angular-bootstrap/ngbootstrap';Declaration
interface NgbGridChartConfig<T = any>Properties
mode
mode: NgbGridChartModerows
Tabular rows used by the grid and chart builders.
rows: T[]dimension
Primary label column (e.g. product name).
dimension: NgbDataDimensionDef<T>subDimension
Optional secondary line under the dimension label (e.g. category).
subDimension?: NgbDataDimensionDef<T>metrics
Metrics available for charts / sparklines.
metrics: NgbDataMetricDef<T>[]rowSelectionMetrics
Metrics plotted for row-selection mode (defaults to all metrics).
rowSelectionMetrics?: NgbDataMetricDef<T>[]selectedMetricKeys
Keys of metrics enabled in column-selection mode.
selectedMetricKeys?: string[]selectedRowIds
Row ids selected in row-selection mode.
selectedRowIds?: Array<string | number>chartType
chartType?: NgbDataChartTypechartTitle
chartTitle?: stringvalueFormatter
valueFormatter?: (value: number) => stringfullGrid
Full-grid mode options (metric + grouping).
fullGrid?: Partial<NgbFullGridChartOptions<T>>sparkline
sparkline?: NgbGridChartSparklineOptions<T>trailingColumns
Extra grid columns appended after metric columns (e.g. growth %).
trailingColumns?: Array<{
field: string;
header: string;
type?: 'text' | 'number';
width?: number;
}>