# Create a line chart based on field values in case of One2Many

**URL:** https://discuss.tryton.org/t/create-a-line-chart-based-on-field-values-in-case-of-one2many/2090
**Category:** Developer
**Created:** [December 17, 2019, 6:05am UTC](https://discuss.tryton.org/t/create-a-line-chart-based-on-field-values-in-case-of-one2many/2090 "2019-12-17T06:05:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![prashasti.sharma](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/p/58f4c7/32.png) [@prashasti.sharma](https://discuss.tryton.org/u/prashasti.sharma)
#### Post date: [December 17, 2019, 6:05am UTC](https://discuss.tryton.org/t/create-a-line-chart-based-on-field-values-in-case-of-one2many/2090/1 "2019-12-17T06:05:29Z")

</div>

Sir, can u provide me the reference where the code for graph view written in any of tryton module for the above mentioned topic is provided.

Any help regarding this will be appreciable.

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [December 17, 2019, 9:34am UTC](https://discuss.tryton.org/t/create-a-line-chart-based-on-field-values-in-case-of-one2many/2090/2 "2019-12-17T09:34:07Z")

</div>

There is an example on the stock module, on the [quantities by warehouse graph](https://hg.tryton.org/modules/stock/file/6a1f51678c15/view/product_quantities_warehouse_graph.xml)

---

<div class="post-metadata">

### Author: ![prashasti.sharma](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/p/58f4c7/32.png) [@prashasti.sharma](https://discuss.tryton.org/u/prashasti.sharma)
#### Post date: [December 26, 2019, 6:48am UTC](https://discuss.tryton.org/t/create-a-line-chart-based-on-field-values-in-case-of-one2many/2090/3 "2019-12-26T06:48:44Z")

</div>

How to plot DateTime field on x axis and other outputs in y axis like y1, y2, y3 etc but we need to filter them like x and y1 as a single graph from the combined graph of x axis as datetime field and y1, y2 and y3 as outputs.
