Skip to Content
Menu
This question has been flagged
4072 Rodiniai

I'd like to display a graph in odoo. in which i have two fields:

Date in the x-axis.

Boolean in the y-axis.

odoo use the nvd3.js to display this charts,

this is the view.xml:


<record model="ir.ui.view" id="id_view">
    <field name="name">test.base.graph.view16</field>
    <field name="model">module.base</field>
    <field name="type">graph</field>
    <field name="arch" type="xml">
        <graph string="test" type="bar" >
            <field name="date" interval="day" type="row"/>
            <field name="boolean" type="measure"/>
    </graph>
</field>

</record>


this code doesn't work for me, it return an empty graph. any one have idea about this issue.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 23
2382
0
lapkr. 22
2509
1
spal. 22
1734
1
bal. 22
5334
1
birž. 15
5135