Skip to content

Commit

Permalink
Added order_bars checkbox for dist_bar viz
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Nov 15, 2016
1 parent af0296d commit ad8bf9d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion superset/assets/javascripts/explorev2/stores/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ export const visTypes = {
['groupby'],
['columns'],
['row_limit'],
['show_legend', 'show_bar_value', 'bar_stacked'],
['show_legend', 'show_bar_value'],
['bar_stacked', 'order_bars'],
['y_axis_format', 'bottom_margin'],
['x_axis_label', 'y_axis_label'],
['reduce_x_ticks', 'contribution'],
Expand Down Expand Up @@ -869,6 +870,13 @@ export const fields = {
description: 'Show the value on top of the bar',
},

order_bars: {
type: 'CheckboxField',
label: 'Sort Bars',
default: false,
description: 'Sort bars by x labels.',
},

show_controls: {
type: 'CheckboxField',
label: 'Extra Controls',
Expand Down

0 comments on commit ad8bf9d

Please sign in to comment.