Home > @i2analyze/notebook-sdk > visual > IBrushSetsManager > getColorForRecord
visual.IBrushSetsManager.getColorForRecord() method
Gets the CSS color string for a record based on the active brush sets.
Signature:
getColorForRecord(recordId: records.AnalyzeRecordId): string | null;
Introduced: version 1.9
Parameters
| Parameter | Type | Description |
|---|---|---|
| recordId | records.AnalyzeRecordId | The identifier of the record. |
Returns:
string | null
The CSS color string for the record, or null if the record is not brushed.
Remarks
This method resolves colors using a two-layer precedence system:
- System overlay brush sets (for example, Find-on-Chart) take precedence 2. Falls back to the active plug-in-owned brush set 3. Returns
nullif the record is not brushed in any active set.