Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[explorev2] Make chart container more responsive #1724

Merged
merged 3 commits into from
Dec 1, 2016

Conversation

vera-liu
Copy link
Contributor

Before:
the old chart stays in chart container when there's error drawing new chart

Done:
**Leave chart empty when theres error
**Make all boolean fields auto-query chart when changed

screen shot 2016-11-30 at 1 01 20 pm

giphy 17

needs-review @ascott

 **Leave chart empty when theres error
 **Make all boolean fields auto-query chart when changed
@vera-liu vera-liu changed the title Make chart container more responsive [explorev2] Make chart container more responsive Nov 30, 2016
style={{ 'overflow-x': 'scroll' }}
/>)
}
{this.renderChart(this.props.alert, this.props.isChartLoading)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I'm missing something but you shouldn't have to pass props as they'll be in scope in the function

});
const refreshChart = Object.keys(nextProps.form_data).some((field) => (
nextProps.form_data[field] !== this.props.form_data[field]
&& (typeof nextProps.form_data[field] === 'boolean'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean you assume that all boolean fields should act like an autoQueryFields? It may not be the case. I think you probably want to add these fields in the autoQueryFields array instead.

@mistercrunch
Copy link
Member

Nice, LGTM. eventually we should have a way to tell the user that a field is an autoQueryFields. Maybe a text-muted lightning bolt icon next to the info bubble.

@vera-liu
Copy link
Contributor Author

vera-liu commented Dec 1, 2016

Maybe at some point we could reorganize Control Panel for each viz_type so that 'Chart Options' are grouped together as one section and every field in it is auto-query

@vera-liu vera-liu merged commit 2d0ebea into apache:master Dec 1, 2016
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.15.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants