# Perspective Pie Chart Level Error

**URL:** <https://forum.inductiveautomation.com/t/perspective-pie-chart-level-error/105649>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [April 28, 2025, 8:03pm UTC](https://forum.inductiveautomation.com/t/perspective-pie-chart-level-error/105649 "2025-04-28T20:03:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joseph.ferguson](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@joseph.ferguson](https://forum.inductiveautomation.com/u/joseph.ferguson)\
**Post date:** [April 28, 2025, 8:03pm UTC](https://forum.inductiveautomation.com/t/perspective-pie-chart-level-error/105649/1 "2025-04-28T20:03:53Z")

</div>

I have embedded perspective view with a pie chart inside of it. I am getting the following error: components.PieChart: Data invalid. Each pie section object must have a label (string) and a value (number).  
It is a LEVEL\_ERROR when I look at it in the output console. The issue is that for the most part I am sure I am only sending data that follows this format.

It also loads correctly for a brief segment, then displays the error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/8/b8ccaf9c13e9fca9d337e0d25752e4ad09545125.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/b/2bac72f3d5be82e81fb11182ad87bef4da9579f4.png)

The pie chart pulls from the table above it. What is confusing to me is that although the table never shows an error, the pie chart will.

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [April 28, 2025, 8:07pm UTC](https://forum.inductiveautomation.com/t/perspective-pie-chart-level-error/105649/2 "2025-04-28T20:07:00Z")

</div>

Your script transform is showing an error. You will want to hover over that error, figure out what is causing it, and correct it.
