# Y vs X line plot using Dashboard 2 chart

**URL:** https://discourse.nodered.org/t/y-vs-x-line-plot-using-dashboard-2-chart/95428
**Category:** Dashboard
**Tags:** node-red-dashboard, dashboard-2
**Created:** [15 February 2025 17:24 UTC](https://discourse.nodered.org/t/y-vs-x-line-plot-using-dashboard-2-chart/95428 "2025-02-15T17:24:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![peterwasatjet](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@peterwasatjet](https://discourse.nodered.org/u/peterwasatjet)
#### Post date: [15 February 2025 17:24 UTC](https://discourse.nodered.org/t/y-vs-x-line-plot-using-dashboard-2-chart/95428/1 "2025-02-15T17:24:56Z")

</div>

New to nodeRED, I want to create an xy line graph in chart Dashboard2, from a JSON structure. The x axis could be any real value, but in the first instance would be elapsed time in seconds, say 0.0 to 2.5 seconds.  
The chart object seems happy to plot time series with absolute times, but that's not what I need.

Also, are there published schema for the data structure[s] chart accepts? The online documentation is a bit vague.

---

<div class="post-metadata">

### Author: ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)
#### Post date: [16 February 2025 09:55 UTC](https://discourse.nodered.org/t/y-vs-x-line-plot-using-dashboard-2-chart/95428/2 "2025-02-16T09:55:59Z")

</div>

Hi @peterwasatjet - welcome to Node-RED and the forums!

There is no fixed schema requirment, instead, the chart node itself allows you to define your own schema.

It sounds like you may want to change the "X Axis Type" to Liner, instead of Timestamp as a first port of call.

After that, depending on the data you are feeding in, you can configure the chart node accordingly. Do you have an example of what you're trying to send?

---

<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: [18 March 2025 09:56 UTC](https://discourse.nodered.org/t/y-vs-x-line-plot-using-dashboard-2-chart/95428/3 "2025-03-18T09:56:10Z")

</div>

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