-
Notifications
You must be signed in to change notification settings - Fork 18
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
HACK: Remove "Open in Vega Editor" from volatility for now #154
Conversation
Maybe the answer, at least in the short term, is to leave the autosize on |
We aren't really looking to allow that - the textbox is just a by-product of how we were doing dynamic sizing via signal. Once upon a time that was the best way to handle dynamic resize in vega. I think that some time later in the 4.x or 5 series of vega they added new options to vega for including a signal directly in the autosize attribute. I bet there's just a better, more succinct way to do this, now. |
@thermokarst in that case, my life just got a whole lot easier. Do we still want to leave all those other modifiable settings down there? They don't seem to be breaking anything. And I'm pretty sure I can ditch that textbox pretty easily now that it's not useful. |
211098c This should size the plot pretty well overall. I'll look into making it happen without that textbox. Absolute worst case I can call it something like "width (don't change)" I suppose. Or "width (set autosize type to 'pad' before changing)" those get a bit too long though. EDIT: Making the name that long actually seriously breaks things 😂 |
f02690b Turns out you can just remove the binding to the textbox and it still works just fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Oddant1! I took a closer look today, and Vega 5 is going to require a little bit of engineering effort, which we probably don't have much time for before the release. Can you please:
- update this PR to remove the "open in vega editor" button from the template
- file an issue in this repo that puts "upgrade volatility charts to vega 5" on our radar (feel free to start looking into that, too).
- look around the org for any other vega visualizations and do the same two steps on them (remove open in vega editor; open issue about upgrading specs). I think feature-table summarize and composition ancom are two vega vizs, but there might be more. Please let me know if you have any questions!
@thermokarst I'm not seeing any other viz's that use vega |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM, but please undo the changes to vega-embed.min.js - thanks!
@thermokarst I believe the js changes were also rolled back here, but do you want me to also role back the other changes I made while trying to make the viz work. |
Sorry, I realize where the caching was coming from - I was navigating to the PR via my notifications. The notification I was clicking on was an old when. Sorry for that!
Yes please! |
band aids #153
band aids #155
fit-x
topad
. Onfit-x
it was impossible to effectively resize the plot within the editor. I think if I just reduce the default width this issue may be resolved.EDIT: In regards to number 2, the plot being too wide or not outside the vega editor is now entirely dependent on monitor resolution. This is obviously not ideal.