# Error: Invalid property expression: zero-length in ui-chart

**URL:** https://discourse.nodered.org/t/error-invalid-property-expression-zero-length-in-ui-chart/94760
**Category:** General
**Tags:** dashboard-2
**Created:** [20 January 2025 19:52 UTC](https://discourse.nodered.org/t/error-invalid-property-expression-zero-length-in-ui-chart/94760 "2025-01-20T19:52:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [20 January 2025 19:52 UTC](https://discourse.nodered.org/t/error-invalid-property-expression-zero-length-in-ui-chart/94760/1 "2025-01-20T19:52:11Z")

</div>

I upgraded to the 1.22 version and my ui-chart which is configured to bar is giving me this error: `Error: Invalid property expression: zero-length`.

I am passing an array with object with x and y properties:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/07809e6027a13daa756c40cb1dcb1c5df20d8fb6.png)

Has anything changed how the ui-chart accepts data?

Thanks a lot.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [21 January 2025 07:45 UTC](https://discourse.nodered.org/t/error-invalid-property-expression-zero-length-in-ui-chart/94760/2 "2025-01-21T07:45:17Z")

</div>

It depends what version of dashboard you had installed prior. There was a problem in earlier versions where it used certain wrongly configured parameters that made things work by accident (that's the best way I can describe it). Please show us a screenshot of how the bar chart node is configured.

---

<div class="post-metadata">

### Author: ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)
#### Post date: [23 January 2025 12:14 UTC](https://discourse.nodered.org/t/error-invalid-property-expression-zero-length-in-ui-chart/94760/3 "2025-01-23T12:14:53Z")

</div>

As far as I remember, I only changed the chart type to bar, everything else is default.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/9/d9464c562d12e4a0fbc9df77ee8c0a119be7418f.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/8/48ea7956f53f8b8e97cdb84c94389cb91a0bfd27.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c48763d36a45f795d9380db4cc53a9a6f56d6db.png)  
Cloud it be because the dates for the x axis is sent as string?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 April 2025 12:15 UTC](https://discourse.nodered.org/t/error-invalid-property-expression-zero-length-in-ui-chart/94760/4 "2025-04-23T12:15:13Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
