react-code-dataset / recharts /src /util /stacks /getStackSeriesIdentifier.ts
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
539 Bytes
import { MaybeStackedGraphicalItem } from '../../state/selectors/barSelectors';
import { StackSeriesIdentifier } from './stackTypes';
/**
* Returns identifier for stack series which is one individual graphical item in the stack.
* @param graphicalItem - The graphical item representing the series in the stack.
* @return The identifier for the series in the stack
*/
export function getStackSeriesIdentifier(
graphicalItem: MaybeStackedGraphicalItem | undefined,
): StackSeriesIdentifier | undefined {
return graphicalItem?.id;
}