在一定数量之后在新 line/column 中呈现枢轴属性

Rendering pivot attributes in a new line/column after a certain number of them

我们正在使用 nicolaskruchten's pivottable library,我们希望限制 x 或 y 轴上每行显示的属性数量,以便在一定数量后,它们可以 "jump"在 x 轴属性的情况下不同的行或在 y 轴属性的情况下的列。

另一种查看方式是为容器 header 行定义固定宽度,这样在加载一定数量的属性后默认情况下属性可以在多行中显示。

感谢大家提供的见解。

我设法仔细查看了我最初想要的内容,例如:

Attribute1 Attribute2 Attribute3 Attribute4 Attribute5 

Atrribute6 Attribute7 Attribute8 Attribute9 Attribute10

只需打开通常位于 app/css/pivottable 中的文件 pivot.css 并设置:

.pvtHorizList li { display: inline-block; } 

这将建立更严格的宽度和高度,让他们相应地取 space 并在没有剩余 space 时跳到下一行。

希望对您有所帮助。