英文:
Taipy adjust height in chart
问题
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?
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.
<|layout|columns=1 1|
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=600px|>
<|
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|height=300px|type[1]=bar|>
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|>
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|>
|>
|>
英文:
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.
<|layout|columns=1 1|
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=600px|>
<|
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|height=300px|type[1]=bar|>
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|>
<|{data}|chart|x=x_col|y[1]=y_col_1|y[2]=y_col_2|type[1]=bar|height=300px|>
|>
|>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论