Column configuration for markdown table generation. Generic interface that defines how to extract and format data from any data type.
// Column for formatting signal dataconst signalColumn: ColumnModel<IStrategyTickResultClosed> = { key: "pnl", label: "PNL", format: (signal) => `${signal.pnl.pnlPercentage.toFixed(2)}%`, isVisible: () => true};// Column for formatting heatmap rowsconst heatmapColumn: ColumnModel<IHeatmapRow> = { key: "symbol", label: "Symbol", format: (row) => row.symbol, isVisible: () => true}; Copy
// Column for formatting signal dataconst signalColumn: ColumnModel<IStrategyTickResultClosed> = { key: "pnl", label: "PNL", format: (signal) => `${signal.pnl.pnlPercentage.toFixed(2)}%`, isVisible: () => true};// Column for formatting heatmap rowsconst heatmapColumn: ColumnModel<IHeatmapRow> = { key: "symbol", label: "Symbol", format: (row) => row.symbol, isVisible: () => true};
The data type that this column will format
Formatting function to convert data to string
Function to determine if column should be visible
Unique column identifier
Display label for column header
Column configuration for markdown table generation. Generic interface that defines how to extract and format data from any data type.
Example