diff --git a/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/config.js b/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/config.js index 278ced0096..dd02d902b8 100644 --- a/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/config.js +++ b/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/config/config.js @@ -28,7 +28,7 @@ import formatTooltip, { TOOLTIP_HEADER_CLASS_NAME, TOOLTIP_LIST_CLASS_NAME, TOOLTIP_ROW_CLASS_NAME, - TOOLTIP_ROW_NAME_CLASS_NANE, + TOOLTIP_ROW_NAME_CLASS_NAME, } from '../tooltip/tooltip'; import {handleLegendItemClick} from './handleLegendItemClick'; @@ -193,7 +193,7 @@ export function synchronizeTooltipTablesCellsWidth(tooltipContainer, isMobile) { } if (isMobile && tooltipOverflowsViewport) { - const rowNamesNodes = tooltipContainer.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NANE}`); + const rowNamesNodes = tooltipContainer.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NAME}`); for (let i = 0; i < rowNamesNodes.length; i++) { const node = rowNamesNodes[i]; diff --git a/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/tooltip.ts b/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/tooltip.ts index f08810c3cf..894e43f5cb 100644 --- a/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/tooltip.ts +++ b/src/ui/libs/DatalensChartkit/ChartKit/modules/graph/tooltip/tooltip.ts @@ -14,7 +14,7 @@ import './tooltip.scss'; export const SERIES_NAME_DATA_ATTRIBUTE = 'data-series-name'; export const SERIES_IDX_DATA_ATTRIBUTE = 'data-series-idx'; export const TOOLTIP_CONTAINER_CLASS_NAME = '_tooltip'; -export const TOOLTIP_ROW_NAME_CLASS_NANE = '_tooltip-rows__name-td'; +export const TOOLTIP_ROW_NAME_CLASS_NAME = '_tooltip-rows__name-td'; export const TOOLTIP_ROW_CLASS_NAME = '_tooltip-row'; export const TOOLTIP_HEADER_CLASS_NAME = '_tooltip-header'; export const TOOLTIP_LIST_CLASS_NAME = '_tooltip-list'; @@ -36,7 +36,7 @@ const renderLineShapeCell = (line: TooltipLine) => `; const renderNameCell = (line: TooltipLine) => - ` + ` ${line.hideSeriesName ? '' : escapeHTML(line.seriesName)} `; diff --git a/src/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/highcharts.js b/src/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/highcharts.js index 8e44690f48..645a19ed51 100644 --- a/src/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/highcharts.js +++ b/src/ui/libs/DatalensChartkit/ChartKit/modules/highcharts/highcharts.js @@ -12,7 +12,7 @@ import { TOOLTIP_FOOTER_CLASS_NAME, TOOLTIP_LIST_CLASS_NAME, TOOLTIP_ROW_CLASS_NAME, - TOOLTIP_ROW_NAME_CLASS_NANE, + TOOLTIP_ROW_NAME_CLASS_NAME, } from '../graph/tooltip/tooltip'; import {i18n} from '../i18n/i18n'; @@ -324,7 +324,7 @@ function initHighcharts({isMobile}) { } if (isFixation) { - const rowNames = this.container.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NANE}`); + const rowNames = this.container.querySelectorAll(`.${TOOLTIP_ROW_NAME_CLASS_NAME}`); for (let i = 0; i < rowNames.length; i++) { const rowNameNode = rowNames[i];