Skip to content

Commit

Permalink
Remove limiting from xy chart, expose chart to SQL Lab
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreythewang committed Feb 5, 2018
1 parent 1f54180 commit 1f2e61c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
23 changes: 11 additions & 12 deletions superset/assets/javascripts/explore/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,25 +156,14 @@ export const visTypes = {

line_xy: {
label: t('XY - Line Chart'),
showOnExplore: true,
controlPanelSections: [
{
label: t('Axis Options'),
description: t('Select which columns or metrics to plot'),
expanded: true,
controlSetRows: [
['columns_and_metrics_x'],
['columns_and_metrics_y'],
['slice_by'],
],
},
{
label: t('GROUP BY'),
description: t('Use this section if you want a query that aggregates'),
controlSetRows: [
['groupby'],
['metrics'],
['limit', 'timeseries_limit_metric'],
['order_desc', null],
],
},
{
Expand All @@ -190,6 +179,16 @@ export const visTypes = {
['row_limit'],
],
},
{
label: t('Axis Options'),
description: t('Select which columns or metrics from the query to plot'),
expanded: true,
controlSetRows: [
['columns_and_metrics_x'],
['columns_and_metrics_y'],
['slice_by'],
],
},
{
label: t('Chart Options'),
controlSetRows: [
Expand Down
3 changes: 1 addition & 2 deletions superset/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,7 @@ class NVD3LineXYViz(NVD3Viz):

viz_type = 'line_xy'
verbose_name = _('XY Line Chart')
sort_series = False
is_timeseries = True
is_timeseries = False

def query_obj(self):
d = super(NVD3LineXYViz, self).query_obj()
Expand Down

0 comments on commit 1f2e61c

Please sign in to comment.