Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ module.controller('WidgetAccountsRatiosCtrl', ($scope, $q, $filter, $translate,
$scope.periodInfoContext.histParams = w.metadata.hist_parameters
$scope.periodInfoContext.accountingBehaviour = behaviour
getPrefix(behaviour).then((label)-> $scope.periodInfoContext.injectBefore = label)
$scope.allowXAxisLegend = !_.includes(['accounts/ratios/current', 'accounts/ratios/debt_service'], w.endpoint)

if behaviour == 'pnl'
$scope.totalRatio = w.content.calculation.ratio.average
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h4>Widget settings</h4>

<div class="history chart-container" ng-show="widget.isHistoryMode">
<div impac-chart draw-trigger="::drawTrigger.promise" deferred="::chartDeferred"></div>
<div ng-if="allowXAxisLegend" class="legend">{{ widget.content.layout.ratio }}</div>
<div class="legend">{{ widget.content.layout.ratio }}</div>
</div>
</div>

Expand Down