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

[Lens] Allow customizing the whitespace in Lens visualizations #145926

Closed
davismcphee opened this issue Nov 21, 2022 · 2 comments
Closed

[Lens] Allow customizing the whitespace in Lens visualizations #145926

davismcphee opened this issue Nov 21, 2022 · 2 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@davismcphee
Copy link
Contributor

Describe the feature:

It would be useful to allow customizing the whitespace in Lens visualizations when consuming them as embeddables. In Discover we are using the embeddable with noPadding, which eliminates CSS padding, but there is additional whitespace in the canvas that affects the alignment, and currently we don't seem to have a way to control it:
image

Some context provided by a member of the Elastic Charts team:

...that white space is either determined by the theme.chartPaddings or theme.chartMargins, talks to reduce this start here. Or if those are theme properties are both zero and you still see space could be the title is set to '' still taking up space, you have axes paddings (see example), or the tick positioning logic is pushing the axis out to fit the text on the x-axis.

Describe a specific use case for the feature:

Supporting this would allow us to better align the Lens histogram used in Discover.

@davismcphee davismcphee added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Nov 21, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@davismcphee davismcphee changed the title Allow customizing the whitespace in Lens visualizations [Lens] Allow customizing the whitespace in Lens visualizations Nov 25, 2022
@stratoula stratoula added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Dec 20, 2022
@markov00
Copy link
Member

markov00 commented Jun 3, 2024

I believe this is already possible as you can customize/override embeddable chart Settings.
Please reopen if required.

@markov00 markov00 closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

4 participants