# Unable to get data to display on DBv2 chart

**URL:** <https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889>\
**Category:** Dashboard\
**Created:** [29 August 2025 18:18 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889 "2025-08-29T18:18:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [29 August 2025 18:18 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/1 "2025-08-29T18:18:12Z")

</div>

I need assistance in determining why my data is not being displayed on the chart. Here is my data object:

```auto
[{"pop":100,"time":0},{"pop":100,"time":1},{"pop":100,"time":2},{"pop":100,"time":3},{"pop":93,"time":4},{"pop":0,"time":5},{"pop":0,"time":6}]

```

Here is the screenshot of my chart settings

 ![Screenshot 2025-08-29 131758](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/36eefd9ae13ec39ebadec67499345349d90df493.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 August 2025 18:55 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/2 "2025-08-29T18:55:35Z")

</div>

The chart widget is unable to interpret your "time" values 1, 2, 3, 4, 5, 6 as valid timescale values.  
Change the x axis type to Linear.

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [29 August 2025 18:59 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/3 "2025-08-29T18:59:08Z")

</div>

Your 'time' data is not a timescale value. Set it to 'linear' and it works

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [29 August 2025 19:14 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/4 "2025-08-29T19:14:50Z")

</div>

Ok if my x-axis values were “Mon”, “Tues”, “Wed” would I then set it to Timescale or leave it Linear?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [29 August 2025 19:50 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/5 "2025-08-29T19:50:47Z")

</div>

What happened when you tried it?

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [29 August 2025 19:51 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/6 "2025-08-29T19:51:06Z")

</div>

Set it as 'Categorical' Only use 'Timescale' if your x axis is in epoch times (Timestamps must be in milliseconds (ms)).

```auto
X-Axis Type: Choose between a "Timescale" (for time-based data), "Linear" (for numerical data), or "Categorical" (for non-numeric data). You'll notice that some x-axis types are only available for certain chart types.

```

Note if you send timestamps and set X Axis Type to 'Timescale' you can then show it in various formats as defined by the Format field

```auto
HH:mm:ss | HH:mm | YYYY-MM-DD | DD/MM | dd HH:mm | Custom | Auto Defines how the values are displayed on the axis, when X-Axis type is 'timescale'. See here for an overview of all available Luxon tokens.

```

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [29 August 2025 19:56 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/7 "2025-08-29T19:56:21Z")

</div>

@Buckskin … thanks for verifying my understanding. Concerning the x-axis timestamp, if I want to format the field would I include something like this in payload: ui\_control: { "xformat": "HH:MM" }

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [29 August 2025 20:25 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/8 "2025-08-29T20:25:17Z")

</div>

No, you have to define it in the chart node. The only dynamic for the chart node is 'Action'

Have a look at [Chart ui-chart | Node-RED Dashboard 2.0](https://dashboard.flowfuse.com/nodes/widgets/ui-chart) for all the info on the chart node.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [29 August 2025 20:55 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/9 "2025-08-29T20:55:22Z")

</div>

> [@Buckskin](#):
>
> Set it as 'Categorical' Only use 'Timescale' if your x axis is in epoch times

It seems that you cannot have 'categorical' x axis for a line chart, only timestamp or linear, unlike the old dashboard with did support this. See also [Flowfuse Dashboard line chart using categorical x axis values](https://discourse.nodered.org/t/flowfuse-dashboard-line-chart-using-categorical-x-axis-values/98873), which I am hoping someone will produce an answer for.

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [29 August 2025 22:09 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/10 "2025-08-29T22:09:14Z")

</div>

@Colin … well that explains the problem I’m having with my 2nd chart where I’m using the day of the week (i.e., Mon, Tue, Wed) as the x-axis value but it is not displaying them.

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [29 August 2025 22:11 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/11 "2025-08-29T22:11:31Z")

</div>

@Buckskin … where in the chart node can I set the x-axis format. I don’t see any field with that designation.

---

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [29 August 2025 23:39 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/12 "2025-08-29T23:39:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/5/2564f31806e17e00402941c271fcc083e0bd3e91.png)

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [30 August 2025 00:50 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/13 "2025-08-30T00:50:29Z")

</div>

Thanks for the screenshot… issue was on my end… I was looking at a bar chart. 🙂

---

<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:** [29 September 2025 00:51 UTC](https://discourse.nodered.org/t/unable-to-get-data-to-display-on-dbv2-chart/98889/14 "2025-09-29T00:51:02Z")

</div>

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