( summaryById: SummaryById, cellIdType: 'xCellId' | 'yCellId', )
| 453 | yMax === boundYMax; |
| 454 | |
| 455 | const 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 | |
| 472 | const getAxisBounds = ( |
| 473 | [xMin, xMax, yMin, yMax]: Bounds, |
no test coverage detected
searching dependent graphs…