Skip to content

Commit

Permalink
Upgrade PivotTable.js and enable TSV export
Browse files Browse the repository at this point in the history
  • Loading branch information
jbencook committed Oct 6, 2015
1 parent a15d796 commit 6cccd30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions rd_ui/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
<script src="/bower_components/gridster/dist/jquery.gridster.js"></script>
<script src="/bower_components/angular-growl/build/angular-growl.js"></script>
<script src="/bower_components/pivottable/dist/pivot.js"></script>
<script src="/bower_components/pivottable/dist/export_renderers.js"></script>
<script src="/bower_components/cornelius/src/cornelius.js"></script>
<script src="/bower_components/mousetrap/mousetrap.js"></script>
<script src="/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js"></script>
Expand Down
4 changes: 3 additions & 1 deletion rd_ui/app/scripts/visualizations/pivot.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ renderers.directive('pivotTableRenderer', function () {
// We need to give the pivot table its own copy of the data, because its change
// it which interferes with other visualizations.
var data = $.extend(true, [], $scope.queryResult.getData());
var renderers = $.extend($.pivotUtilities.renderers,
$.pivotUtilities.export_renderers)
$(element).pivotUI(data, {
renderers: $.pivotUtilities.renderers
renderers: renderers
}, true);
}
});
Expand Down
2 changes: 1 addition & 1 deletion rd_ui/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"codemirror": "4.8.0",
"highcharts": "3.0.10",
"underscore": "1.5.1",
"pivottable": "~1.1.1",
"pivottable": "1.6.3",
"cornelius": "https://github.com/restorando/cornelius.git",
"gridster": "0.2.0",
"mousetrap": "~1.4.6",
Expand Down

0 comments on commit 6cccd30

Please sign in to comment.