<div ng-if="item.isOpen" class="text-center">
  <scorechart score="item.mediaPyRiskScore" max="1" min="-1"></scorechart>
</div>

<div
  ng-if="!item.isOpen"
  class="text-center"
  ng-style="{
    'background-color': item.mediaPyRiskScoreColor,
    'color': item.mediaPyRiskScore > 0.6 || item.mediaPyRiskScore <= -0.6 ? 'white' : 'black',
    'padding-left': '15px',
    'padding-right': '15px'
  }"
>
  {{item.mediaPyRiskScore | number:2}}
</div>