# Populate Pie Chart from table data

**URL:** <https://forum.inductiveautomation.com/t/populate-pie-chart-from-table-data/97660>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 23, 2024, 12:14pm UTC](https://forum.inductiveautomation.com/t/populate-pie-chart-from-table-data/97660 "2024-10-23T12:14:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [October 23, 2024, 12:23pm UTC](https://forum.inductiveautomation.com/t/populate-pie-chart-from-table-data/97660/3 "2024-10-23T12:23:09Z")

</div>

Wow! that works, thanks Transistor, no way I can find this by myself.

```python
 pie_chart_nivel_data = [{"count": v, "flavor": "x" + str(k)} for k, v in nivel_data.items()]
            

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/0/a08845462bb5fb93573db7ad9dbd0bbd0684571b.png)

only works with the x

now I should find the way to take the x off

the flavor thing is because it was the original structure on pie charts, didn´t change it...maybe I should.

---

_[View the full topic](https://forum.inductiveautomation.com/t/populate-pie-chart-from-table-data/97660)._
