in src/panels/graph.ts [119:134]
addTarget(target: string & { hide: any }) {
const refs = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const builtTarget = target.toString();
const targetWithRefs: { target: string; hide: unknown; refId: string } =
{
target: builtTarget,
hide: target.hide,
// todo: can potentially run out of bounds
refId: refs[this._currentRefIndex++]!,
};
const targetFull = handleRefTargets(builtTarget, this.state.targets);
const targetToAdd = Object.assign({}, targetWithRefs, targetFull);
this.state.targets.push(targetToAdd);
}