change(table panel): changed default transform mode

This commit is contained in:
Torkel Ödegaard 2015-12-04 15:38:49 +01:00
parent 002455da07
commit f9b13791de
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export class TablePanelCtrl {
var panelDefaults = {
targets: [{}],
transform: 'timeseries_to_rows',
transform: 'timeseries_to_columns',
pageSize: null,
showHeader: true,
styles: [

View File

@ -112,7 +112,7 @@ export class TableRenderer {
// this hack adds header content to cell (not visible)
var widthHack = '';
if (addWidthHack) {
widthHack = '<div class="table-panel-width-hack">' + this.table.columns[columnIndex].text + '<div>';
widthHack = '<div class="table-panel-width-hack">' + this.table.columns[columnIndex].text + '</div>';
}
return '<td' + style + '>' + value + widthHack + '</td>';