# How to add new graph view types?

**URL:** <https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863>\
**Category:** Developer\
**Tags:** sales\
**Created:** [June 12, 2020, 1:32am UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863 "2020-06-12T01:32:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![schokjohn](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@schokjohn](https://discuss.tryton.org/u/schokjohn)\
**Post date:** [June 12, 2020, 1:32am UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/1 "2020-06-12T01:32:41Z")

</div>

Hi Community,

i was reading documentation about [graph view](https://docs.tryton.org/projects/server/en/latest/topics/views/index.html#graph-view) and at present types supported are: `vbar` , `hbar` , `line` , `pie`…

is possible to add new types to create new graph views like: half pie, gauge, solid gauge, funnel, etc interesting for data analysis and to add them to dashboard.?

how to do it?

thanks!!!

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [June 12, 2020, 7:08am UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/2 "2020-06-12T07:08:30Z")

</div>

> [@schokjohn](#):
>
> is possible to add new types to create new graph views

Only if you [submit a change](https://www.tryton.org/contribute#develop) to add them.

---

<div class="post-metadata">

**Author:** ![joseagrc](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/joseagrc/32/3857_2.png) [@joseagrc](https://discuss.tryton.org/u/joseagrc)\
**Post date:** [June 16, 2020, 12:39am UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/3 "2020-06-16T00:39:06Z")

</div>

Hi @ced too I’m interested in including new charts, where should I start to do it?

at present i look that tryton use pygal library or not?

thanks.

regards!!

---

<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:** [June 16, 2020, 6:38am UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/4 "2020-06-16T06:38:39Z")

</div>

> [@joseagrc](#):
>
> Hi @ced too I’m interested in including new charts, where should I start to do it?

You should start by creating a new idea explaining the graph types you want to add.  
You should check that they are supported by our libraries (or you should contribute a patch to add support for it).

For tryton we use [cairo](https://cairographics.org/) with it’s [python bindings](https://pypi.org/project/pycairo/). For sao we use [c3](https://c3js.org/).

The new graphs should be added to both clients.

---

<div class="post-metadata">

**Author:** ![schokjohn](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/e8c25b/32.png) [@schokjohn](https://discuss.tryton.org/u/schokjohn)\
**Post date:** [June 16, 2020, 2:04pm UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/5 "2020-06-16T14:04:10Z")

</div>

Thank you very much @pokoli i going to read more about this

---

<div class="post-metadata">

**Author:** ![joseagrc](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/joseagrc/32/3857_2.png) [@joseagrc](https://discuss.tryton.org/u/joseagrc)\
**Post date:** [June 16, 2020, 2:54pm UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/6 "2020-06-16T14:54:02Z")

</div>

@pokoli are you checked [plotly](https://plotly.com/python/basic-charts/) library?

---

<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:** [June 16, 2020, 6:05pm UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/7 "2020-06-16T18:05:06Z")

</div>

> [@joseagrc](#):
>
> checked [plotly](https://plotly.com/python/basic-charts/) library?

No, why we should check/use it?

---

<div class="post-metadata">

**Author:** ![joseagrc](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/joseagrc/32/3857_2.png) [@joseagrc](https://discuss.tryton.org/u/joseagrc)\
**Post date:** [June 16, 2020, 6:20pm UTC](https://discuss.tryton.org/t/how-to-add-new-graph-view-types/2863/8 "2020-06-16T18:20:33Z")

</div>

> [@pokoli](#):
>
> No, why we should check/use it?

Yes, I think you should review and maybe it is better to use it than having two types of library, could only have plotly for both the desktop client and web client.

i was checking and it have more charts, more integration types and compatibility … i don’t know is only an idea…

i will start to test [plotly javascript](https://plotly.com/javascript/) with sao…

regards
