From 36a07a4c29f4847d2bca1b8e7ce63189daf57710 Mon Sep 17 00:00:00 2001 From: Andrzej Kopytko Date: Mon, 25 Nov 2024 08:25:34 +0100 Subject: [PATCH] [DOCS] Port for Graph Title Fix to Master (#27677) ### Details: - *item1* - *...* ### Tickets: - *ticket-id* --- docs/sphinx_setup/_static/js/graphs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/sphinx_setup/_static/js/graphs.js b/docs/sphinx_setup/_static/js/graphs.js index 7171aed374dd99..f29042de3e51b7 100644 --- a/docs/sphinx_setup/_static/js/graphs.js +++ b/docs/sphinx_setup/_static/js/graphs.js @@ -669,7 +669,7 @@ $(document).ready(function () { } else { var graphConfigs = setGraphConfigs(filteredGraphData, appConfig, kpis, precisions) - createChartWithNewData(labels, graphConfigs, chartContainer, display); + createChartWithNewData(labels, graphConfigs, appConfig, chartContainer, display); } } else { @@ -730,7 +730,7 @@ $(document).ready(function () { setChartsDisplayDirection(display.mode); adjustHeaderIcons(display.mode); } - function createChartWithNewData(labels, graphConfigs, chartContainer, display) { + function createChartWithNewData(labels, graphConfigs, appConfig, chartContainer, display) { var chartWrap = $('
'); chartWrap.addClass('chart-wrap'); @@ -759,6 +759,8 @@ $(document).ready(function () { columnHeaderContainer.append(columnIcon); var columnHeader = $('
'); columnHeader.append($('
' + graphConfig.chartTitle + '
')); + columnHeader.append($('
' + graphConfig.unit + '
')); + columnHeader.append($('
' + appConfig.UnitDescription[graphConfig.unit] + '
')); columnHeaderContainer.append(columnHeader); chartGraphsContainer.append(graphItem); var graphClass = $('
');