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