Commit f9b13791 by Torkel Ödegaard

change(table panel): changed default transform mode

parent 002455da
...@@ -26,7 +26,7 @@ export class TablePanelCtrl { ...@@ -26,7 +26,7 @@ export class TablePanelCtrl {
var panelDefaults = { var panelDefaults = {
targets: [{}], targets: [{}],
transform: 'timeseries_to_rows', transform: 'timeseries_to_columns',
pageSize: null, pageSize: null,
showHeader: true, showHeader: true,
styles: [ styles: [
......
...@@ -112,7 +112,7 @@ export class TableRenderer { ...@@ -112,7 +112,7 @@ export class TableRenderer {
// this hack adds header content to cell (not visible) // this hack adds header content to cell (not visible)
var widthHack = ''; var widthHack = '';
if (addWidthHack) { 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>'; return '<td' + style + '>' + value + widthHack + '</td>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment