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

Clarify how to resize a visualization / customize #1356

Closed
kanitw opened this issue May 17, 2016 · 6 comments
Closed

Clarify how to resize a visualization / customize #1356

kanitw opened this issue May 17, 2016 · 6 comments
Milestone

Comments

@kanitw
Copy link
Member

kanitw commented May 17, 2016

This page is so hard to read.

Plus, there should be another tutorial that focus on customizing Vega-Lite plot for presentation

@kanitw kanitw modified the milestones: 1.0.x Important Patches, Docs & Website May 23, 2016
@peller
Copy link

peller commented Jul 11, 2016

@kanitw I've been scratching my head over this for the last few days and stumbled on this issue. Looking for a way to set the height/width of a single plot, like spec.width/spec.height on vega. Does it exist?

@kanitw
Copy link
Member Author

kanitw commented Jul 11, 2016

@peller Currently you have to rely on config.cell.width and config.cell.height if quantitative scales on x and y axis respectively. For ordinal scale, currently you have to adjust bandWidth to adjust the size of the visualization.

We plan to add support fitting ordinal scale to a fix width/height (#194)
and top-level width and height (#1421) in the new few weeks.

Hope this helps!

@peller
Copy link

peller commented Jul 11, 2016

thanks, @kanitw! config.cell was not working for me for a single plot. Will wait for #1421. Will top level width/height settings include padding and label areas as well? Would be great if the width/height accessors on the view object could also be used.

@kanitw
Copy link
Member Author

kanitw commented Jul 11, 2016

Can you provide an example spec where config.cell is not working? That seems important for us to fix too. Thank you!

@peller
Copy link

peller commented Jul 12, 2016

Taking a closer look, it appears to be user error. There was an ordinal scale involved, also no accounting for padding/labels, so not useful to me regardless.

@kanitw kanitw modified the milestones: Docs & Website, 1.2 Sizing Jul 14, 2016
@kanitw
Copy link
Member Author

kanitw commented Jul 31, 2016

Done in #1214, pending final docs revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants