简体   繁体   English

Apache-Superset 可变过滤器图表大小

[英]Apache-Superset variable filter chart size

I use multi-select filterboxes in superset-apache by checking the box in the filter for "Allow Multiple Selections".我通过选中过滤器中的“允许多项选择”框来在 superset-apache 中使用多选过滤器框。

However upon usage I realized that while the box of the filter itself expands on selection of multiple items, the parent-box (white background + header) did not, which led to the last of my four filters being "pushed out of the box" (see screenshot) and upon selecting even more elements disappeared completely behind the chart below.然而,在使用时,我意识到虽然过滤器本身的框在选择多个项目时会扩展,但父框(白色背景 + 标题)没有,这导致我的四个过滤器中的最后一个被“推出盒子” (见屏幕截图)并在选择更多元素后完全消失在下面的图表后面。

Is there a way to enable the parent box to adjust its size variably depending on its contents?有没有办法使父框根据其内容可变地调整其大小?

在此处输入图像描述

As an interrim solution I used CSS in the dashboard itself:作为临时解决方案,我在仪表板本身中使用了 CSS:

.resizable-container {
     height: auto !important
}

This had the sideffect that all containers in the dashboard shrink to their content size - eg three different charts in one row have different lengths now (which does not look very clean...), but at least I can use multi-select filters.这样做的副作用是仪表板中的所有容器都缩小到它们的内容大小 - 例如,一行中的三个不同图表现在有不同的长度(看起来不太干净......),但至少我可以使用多选过滤器。

Sadly the filter-containers don't have a specific css-tag so it is not possible to set their height specifically.遗憾的是,过滤器容器没有特定的 css 标记,因此无法专门设置它们的高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM