跳至內容
選單
此問題已被標幟
1 回覆
6433 瀏覽次數

I have a model that contains create_date, field_1 and field_2 which are of float type, How can I display "create_date" in x-axis and the two other fields (field_1 and field_2) in y-axis in the same graph view ?

頭像
捨棄
最佳答案

you can try this.

<record model="ir.ui.view" id="view_test_graph">

    <field name="name">Test</field>

    <field name="model">Model.name</field>

    <field name="arch" type="xml">

     <graph string="Data" type="bar">

        <field name="create_date" type="row"/>

        <field name="field_1" type="measure"/>

        &lt;field name="field_2" type="measure"/>

    </graph>

</field>

</record>

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
6月 15
89
4
12月 21
31876
6
9月 17
8116
3
7月 16
11401
0
6月 15
3483