Home > composition-plot > BasePlot > setColorFn
Set the color function
Signature:
setColorFn(fn: (sample: ISample, dp: DataProvider) => RGBColor): void;
| Parameter | Type | Description |
|---|---|---|
| fn | (sample: ISample, dp: DataProvider) => RGBColor | Returns a fill color for a given sample |
Returns:
void