Skip to content

Commit

Permalink
Layout tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed May 10, 2016
1 parent 6c8c864 commit 168bc4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion caravel/assets/visualizations/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function tableVis(slice) {
timestampFormatter = px.timeFormatFactory(json.form_data.table_timestamp_format);
}

var table = d3.select(slice.selector).html('').append('table')
var div = d3.select(slice.selector);
div.html('');
var table = div.append('table')
Expand Down
16 changes: 9 additions & 7 deletions caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,23 +322,25 @@ class TableViz(BaseViz):
verbose_name = "Table View"
credits = 'a <a href="https://github.com/airbnb/caravel">Caravel</a> original'
fieldsets = ({
'label': "Chart Options",
'fields': (
'table_timestamp_format',
'row_limit',
('include_search', None),
)
}, {
'label': "GROUP BY",
'description': 'Use this section if you want a query that aggregates',
'fields': (
'groupby',
'metrics',
)
}, {
'label': "NOT GROUPED BY",
'description': 'Use this section if you want to query atomic rows',
'fields': (
'all_columns',
)
}, {
'label': "Options",
'fields': (
'table_timestamp_format',
'row_limit',
('include_search', None),
)
})
is_timeseries = False

Expand Down

0 comments on commit 168bc4a

Please sign in to comment.