Specifying the fields for DistributionBarViz as it was showing donut

This commit is contained in:
Maxime Beauchemin 2015-10-02 16:24:15 -07:00
parent e3e5798ed4
commit bc8f9d2e1a
1 changed files with 6 additions and 0 deletions

View File

@ -543,6 +543,12 @@ class DistributionPieViz(NVD3Viz):
class DistributionBarViz(DistributionPieViz):
viz_type = "dist_bar"
verbose_name = "Distribution - Bar Chart"
form_fields = [
'viz_type', 'metrics', 'groupby',
('since', 'until'),
'limit',
('show_legend', None),
]
def get_df(self):
df = super(DistributionPieViz, self).get_df()