调整图表中的 Taipy 高度

huangapple go评论69阅读模式
英文:

Taipy adjust height in chart

问题

charts

I adjusted the attribute "Height" inside the chart; no changes were made to my layout.

<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=200|>

英文:

I want to create a layout for the charts as below. Could you provide me with a sample of this case?

charts

I adjusted the attribute "Height" inside the chart; no changes were made to my layout.

<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=200|>

答案1

得分: 2

For the heights, you have to add px/%/em.
<{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=600px|>

Here is the way to achieve the graph layout.

&lt;|layout|columns=1 1|

&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=600px|&gt;

&lt;|
&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|height=300px|type[1]=bar|&gt;
&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|&gt;
&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|&gt;
|&gt;

|&gt;
英文:

For the heights, you have to add px/%/em.
<{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=600px|>

Here is the way to achieve the graph layout.

&lt;|layout|columns=1 1|

&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=600px|&gt;

&lt;|
&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|height=300px|type[1]=bar|&gt;
&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|&gt;
&lt;|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|&gt;
|&gt;

|&gt;

huangapple
  • 本文由 发表于 2023年3月9日 18:08:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/75683102.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定