components/plot/Plot#
selectFrequencyDisplayUnit#
Parameters#
| Parameter | Type |
|---|---|
state |
RootState |
Returns#
selectPlotConfig#
const selectPlotConfig: (state) => PlotsConfig & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
} & {
dependencies: [(state) => PlotsConfig, (state) => string];
dependencyRecomputations: () => number;
lastResult: () => PlotsConfig;
memoizedResultFunc: (resultFuncArgs_0, resultFuncArgs_1) => PlotsConfig & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
recomputations: () => number;
resetDependencyRecomputations: () => void;
resetRecomputations: () => void;
resultFunc: (resultFuncArgs_0, resultFuncArgs_1) => PlotsConfig;
} & {
argsMemoize: any;
memoize: any;
};
The plot config in effect, with theme resolved to a template name.
Type Declaration#
clearCache#
Returns#
void
resetResultsCount#
Returns#
void
resultsCount#
Returns#
number
Type Declaration#
dependencies#
dependencyRecomputations#
Returns#
number
lastResult#
Returns#
memoizedResultFunc#
memoizedResultFunc: (resultFuncArgs_0, resultFuncArgs_1) => PlotsConfig & {
clearCache: () => void;
resetResultsCount: () => void;
resultsCount: () => number;
};
Type Declaration#
clearCache#
Returns#
void
resetResultsCount#
Returns#
void
resultsCount#
Returns#
number
recomputations#
Returns#
number
resetDependencyRecomputations#
Returns#
void
resetRecomputations#
Returns#
void
resultFunc#
Parameters#
| Parameter | Type |
|---|---|
resultFuncArgs_0 |
PlotsConfig |
resultFuncArgs_1 |
string |
Returns#
Type Declaration#
argsMemoize#
memoize#
selectPlotSettingsById#
Parameters#
| Parameter | Type |
|---|---|
plotId |
string |
Returns#
(state) => PlotsSettings
PlotExtraConfig#
Custom config extensions supported by the D3FC plot provider.
Properties#
autoFitYOnXZoom?#
doubleClick?#
edits?#
referenceFrequencyHz?#
userDraw?#
xUnitsLabel?#
PlotProps#
Properties#
aspectRatio?#
bottomComponent?#
contourThreshold?#
Override the contour threshold multiplier (d3fc default 0.075). Higher
filters out low-level contours so peaks read more clearly in small
previews. Applied to type: 'contour' traces only.
data?#
extraConfig?#
extraLayout?#
headerElements?#
Extra elements injected into PlotFlipper's header toolbar (right side)
linesOnly?#
Force every trace to render lines-only (strips markers from saved trace settings). Used by small ambient previews like the cockpit live readout.
logX?#
logY?#
mergeWithRedux?#
noCaptureRoot?#
When true, omits data-plot-capture-root so a parent can provide it instead
noFlip?#
onClearOverlays?#
Returns#
void
onClick?#
Parameters#
| Parameter | Type |
|---|---|
event |
PlotlyClickEvent |
Returns#
void
onHover?#
Parameters#
| Parameter | Type |
|---|---|
event |
PlotlyHoverEvent |
Returns#
void
onRelayout?#
Parameters#
| Parameter | Type |
|---|---|
event |
Record<string, unknown> |
Returns#
void
onRendererUpdated?#
Fired after each renderer update, which can move the axes without a relayout event.
Parameters#
| Parameter | Type |
|---|---|
container |
HTMLElement |
Returns#
void
onUnhover?#
Returns#
void
onUserDraw?#
Fired when the user finishes a right-click+drag draw gesture (requires config.userDraw)
Parameters#
| Parameter | Type |
|---|---|
detail |
{ x0: number; x1: number; y0?: number; y1?: number; } |
detail.x0 |
number |
detail.x1 |
number |
detail.y0? |
number |
detail.y1? |
number |
Returns#
void
overlayGroupTitle?#
paddedHeight?#
plotId#
rapid?#
When true, disables useDeferredValue for rapid/streaming data updates
showHiddenTraces?#
Force every trace visible, ignoring visible: false from the handler
(e.g. 1D spectra hide Imag/Abs by default). Used by the cockpit readout
to show all components at a glance.
sideElement?#
Element rendered to the right of the plot content (e.g. action sidebar)
style?#
title#
xLabel?#
yLabel?#
PlotlyClickEvent#
Properties#
points#
x#
y#
PlotlyHoverEvent#
Properties#
points#
x#
y#
z?#
Plot#
Re-exports Plot