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

Chart Options showing up in explore under "Data" tab #7393

Closed
3 tasks done
michellethomas opened this issue Apr 27, 2019 · 3 comments · Fixed by #7410
Closed
3 tasks done

Chart Options showing up in explore under "Data" tab #7393

michellethomas opened this issue Apr 27, 2019 · 3 comments · Fixed by #7410
Labels
!deprecated-label:bug Deprecated label - Use #bug instead

Comments

@michellethomas
Copy link
Contributor

In explore the "Chart Options" section is showing up under the data tab which looks confusing because it contains controls for the color, legend (things that don't affect the data). The section is moved to the data tab if any of the controls don't have renderTrigger true, the new label_colors control doesn't have renderTrigger set.

@khtruong Can renderTrigger be set to true for label_colors? Render trigger will make the visualization be re-rendered when the control is changed. If so the "Chart Options" goes back to the Visual tab.

I started to make this change, but noticed that there isn't a control showing up in the UI, it's more of a hidden control, so I'm not sure if it's right to re-render the visualization when the control is changed. If it's a hidden control that can't be set to renderTrigger true, maybe we can put it in the controlSetRow with the other hidden controls (like slice_id, url_params)?

Expected results

Chart options section shows up on the "Visual Properties" tab

Actual results

Chart options section shows up on the "Data" tab

How to reproduce the bug

  1. Go to a line chart
  2. On the left side panel see "Chart Options"

Environment

  • superset version: master

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

@khtruong
cc: @graceguo-supercat

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.89. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the !deprecated-label:bug Deprecated label - Use #bug instead label Apr 27, 2019
@khtruong
Copy link
Contributor

Hey Michelle. At the moment, label_colors is a hidden control. Once we enable color consistency for charts, it will not be a hidden control. It's should be safe to set rengerTrigger as true even if it is a hidden control. The only time it changes is when the color scheme changes, which also re-renders.

@khtruong
Copy link
Contributor

Btw, I totally agree with your proposal. It is a bit confusing to have controls that aren't related to data under the data tab. So I am all for these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants