ie.field" ng-disabled="serie.agg === 'count'"
                ng-options="item.name as item.name for (key, item) in fieldsForAggregation(metadata[serie.entity].attributes, serie.agg)">
                <option value="" disabled selected>-- Select field --</option>
            </select>
        </div>
        <div class="form-group">
            <select class="form-control" ng-model="serie.type" ng-options="item for item in serieTypes"></select>
        </div>

        <div class="form-group">
            <in