mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Fixed bugs with viz in exploreV2 (#1609)
* Fixed bugs with viz in exploreV2 Done: - fix typo in pie viz - add metrics/groupby to dist_bar viz - fix typo in heatmap viz - add big_number_total to viz - fixed problem with fetching columns for datasource - add sqlaTimeSeries to viz - change row_limit and limit from number to strings so that we don't need to parse integers in bootstrap data * Fix python tests * Added order_bars checkbox for dist_bar viz
This commit is contained in:
@@ -41,9 +41,11 @@ class ControlPanelsContainer extends React.Component {
|
||||
|
||||
sectionsToRender() {
|
||||
const viz = visTypes[this.props.form_data.viz_type];
|
||||
const timeSection = this.props.datasource_type === 'table' ?
|
||||
commonControlPanelSections.sqlaTimeSeries : commonControlPanelSections.druidTimeSeries;
|
||||
const { datasourceAndVizType, sqlClause } = commonControlPanelSections;
|
||||
const sectionsToRender = [datasourceAndVizType].concat(viz.controlPanelSections, sqlClause);
|
||||
|
||||
const sectionsToRender = [datasourceAndVizType].concat(
|
||||
viz.controlPanelSections, timeSection, sqlClause);
|
||||
return sectionsToRender;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user