MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getTitle

Function getTitle

src/ui-react-dom-charts/components/CartesianChart.tsx:455–470  ·  view source on GitHub ↗
(
  summaryById: SummaryById,
  cellIdType: 'xCellId' | 'yCellId',
)

Source from the content-addressed store, hash-verified

453 yMax === boundYMax;
454
455const getTitle = (
456 summaryById: SummaryById,
457 cellIdType: 'xCellId' | 'yCellId',
458): string => {
459 const titles: string[] = [];
460 arrayForEach(objValues(summaryById), (summary) => {
461 const title =
462 cellIdType == 'yCellId'
463 ? (summary.yLabel ?? summary.yCellId)
464 : summary.xCellId;
465 if (!isNullish(title) && !arrayHas(titles, title)) {
466 arrayPush(titles, title);
467 }
468 });
469 return arrayIsEmpty(titles) ? '' : arrayJoin(titles, TITLE_SEPARATOR);
470};
471
472const getAxisBounds = (
473 [xMin, xMax, yMin, yMax]: Bounds,

Callers 1

CartesianChartFunction · 0.70

Calls 7

arrayForEachFunction · 0.90
objValuesFunction · 0.90
isNullishFunction · 0.90
arrayHasFunction · 0.90
arrayPushFunction · 0.90
arrayIsEmptyFunction · 0.90
arrayJoinFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…