Skip to content

Commit

Permalink
[DOCS] Port for Graph Title Fix to Master (openvinotoolkit#27677)
Browse files Browse the repository at this point in the history
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
  • Loading branch information
akopytko authored and NishantPrabhuFujitsu committed Nov 26, 2024
1 parent 7514ac4 commit 36a07a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/sphinx_setup/_static/js/graphs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 = $('<div>');
chartWrap.addClass('chart-wrap');
Expand Down Expand Up @@ -759,6 +759,8 @@ $(document).ready(function () {
columnHeaderContainer.append(columnIcon);
var columnHeader = $('<div class="chart-header">');
columnHeader.append($('<div class="title">' + graphConfig.chartTitle + '</div>'));
columnHeader.append($('<div class="subtitle">' + graphConfig.unit + '</div>'));
columnHeader.append($('<div class="subtitle">' + appConfig.UnitDescription[graphConfig.unit] + '</div>'));
columnHeaderContainer.append(columnHeader);
chartGraphsContainer.append(graphItem);
var graphClass = $('<div>');
Expand Down

0 comments on commit 36a07a4

Please sign in to comment.