Skip to content

Commit

Permalink
added metadata bar chart switch
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Zouhar committed Dec 8, 2016
1 parent 79fc709 commit 8789037
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,13 @@ define([
};

$scope.emptyFacets = [{'key':'dummy','data': []}];
$scope.reorder = true;

$scope.initMetadataView = function () {
$scope.initializedMeta = false;
$scope.initializedEntity = false;
//TODO: to order by black bars set true
$scope.reorder = true;

$scope.promiseMetaCharts = undefined;
$scope.promiseEntityCharts = undefined;

Expand Down
3 changes: 3 additions & 0 deletions public/partials/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

<div id="metadata" style="padding: 10px 0 0 10px;">
<p style="font-size:16px; display: inline-block">Frequency Overview</p>
<md-switch ng-model="reorder" aria-label="Ordering Mode" ng-change="initMetadataView()" style="display: inline-block; padding: 0 0 0 16px; margin: 0;">
Order by black bars
</md-switch>
<md-tabs md-stretch-tabs="always" md-dynamic-height="true">
<md-tab label="Entities" md-on-select="updateHeight()">
<div id="entities_tab" class="tab-pane fade in">
Expand Down

0 comments on commit 8789037

Please sign in to comment.