-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Revisit Plotly integration #2117
Comments
I would like to add
as one very basic yet important point. Related controls and codes are scattered in couple of places and this is a good opportunity to review what should be done for graph heights and margins. |
Height can be changed by adjusting the widget height now. And why would someone need to change the margins? |
Is height adjustable in query page? I will post screenshots later for margins. |
Hi @deecay! Your idea definitely makes sense, but, IMHO, we should think a step forward:
We already talked with @arikfr about making embedded visualizations to fit size of |
To expand on @kravets-levko's comment: I think that we need to make visualization take the space they are given. We already have this behavior on dashboard widgets, we just need to expand it to embeds and query page too. Then to accommodate your use case we can make the visualization section on a query page resizable. The only question remains is whether the size of the visualization section should be persisted with the visualization/query. For the sake of simplicity, I would go with no persistence, and revisit this decision after we have this "in the wild". WDYT? |
Hi, Then I just wanted to point out query page is important to consider, and I agree with @kravets-levko that there are even more places to consider, such as editor's preview. @arikfr, by non-persistence, you mean not saved anywhere? For some users dashboard is an overkill, and only need one query page and related visualizations to get their jobs done. For those cases I give out the query page URL. "Hide Source" is a useful feature here, the query page can be a one-topic pseudo-dashboard. So I think it's better to save the height of query-page-viz that has been decided by the author. Height of editor preview can be discarded. BTW, this discussion reminded me that I thought counter visualization in query page is a little too small. After clicking the widget header of a large counter-viz, I couldn't find the counter viz in query page because of the stark size difference. This could be solved with the above idea, or just a larger minimum height. |
Height: but if the visualization consumed 100% of available space, wouldn't it be enough? I mean on a results page (source hidden), there will usually be plenty of vertical space for a chart. On some small resolutions it might be a problem, and the chart might not be as big as the author might want, but this feels like an edge case. Margins: I really wish we (or Plotly) had a solution for this that doesn't require manual intervention. It feels like something "the computer" should do and not the user :) When we revisit the implementation, need to check if they added some auto sizing features. |
|
Past discussion on auto-margin calculation in Plotly.js issues. |
FYI, plotly v1.35.0 will have auto-margin for long labels. See plotly/plotly.js#2243 . |
Thanks for the heads up, @deecay ! |
Our Plotly integration contains a lot of custom code, mainly around stacking. It created some issues over the years (#1902, #1832, #1326, #2116). We also miss out on new features like annotations (#1254).
Let's revisit the integration code, clean it up and mainly:
Once this is done, we can start adding new features (like #728 for example).
The text was updated successfully, but these errors were encountered: