<div ng-controller='ticker' ng-init="init()">

    <style>
    div.trends-horizontal {
        display: inline-block;
        padding-right: 5px;
    }
    </style>

    <div ng-class="{'trends-horizontal':panel.arrangement == 'horizontal'}" ng-style="panel.style" style="line-height:{{panel.style['font-size']}};" ng-repeat="query in trends">
        <i class="icon-circle" style="color:{{query.info.color}}"></i>
        <span bs-tooltip="'Then: '+query.hits.old+', Now: '+query.hits.new" ng-class="{'text-success': query.hits.new >= query.hits.old, 'text-error': query.hits.old > query.hits.new}" class='pointer strong'>
      <i class='large' ng-class="{'icon-caret-up': query.hits.new >= query.hits.old, 'icon-caret-down': query.hits.old > query.hits.new}"></i>{{query.percent}}%
    </span>
        <span class="tiny light" ng-show="query.info.alias != ''">({{query.info.alias}})</span>
    </div>
</div>