# Create a dashboard to show a graph of y=3x+x^2

**URL:** <https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115>\
**Category:** General\
**Tags:** dashboard-2\
**Created:** [2 October 2024 02:05 UTC](https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115 "2024-10-02T02:05:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean\_88](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dean\_88](https://discourse.nodered.org/u/Dean_88)\
**Post date:** [2 October 2024 02:05 UTC](https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115/1 "2024-10-02T02:05:25Z")

</div>

Hello,  
I have been asked to create a dashboard to plot the function y=3x+x^2 on a graph. I am really struggling to find anything on line that shows a step by step on how to do this. The stuff I did find seems to skip the details. can anyone help with this? thanks in advance

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [2 October 2024 03:09 UTC](https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115/2 "2024-10-02T03:09:34Z")

</div>

again .. we will not do your university assignment  
but if you want to get something like this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96e6995ea7e84d41f95da1b50a54bbee5d9df42d.png)  
you need to prep the math calculation in a function node  
and than send it to the chart  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d12f9580ed1e3aca85c7685bb82e1283f77dda6a.png)

---

<div class="post-metadata">

**Author:** ![Dean\_88](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Dean\_88](https://discourse.nodered.org/u/Dean_88)\
**Post date:** [2 October 2024 03:25 UTC](https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115/3 "2024-10-02T03:25:51Z")

</div>

thank you,  
yep I appreciate that genuinely want to learn it properly. the dashboard above is the path that i am trying to go down, but cannot get it to generate the graph. I assume that the function needs to be written in script in the function node? maybe I am getting the syntax wrong. I have also tried the the combi curve node but I'm having a similar issue with input.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [2 October 2024 03:33 UTC](https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115/4 "2024-10-02T03:33:58Z")

</div>

correct .. in the function node you have to generate an array for X and Y coordinates by using javascript

read [here](https://dashboard.flowfuse.com/nodes/widgets/ui-chart.html#multiple-lines) for the array requirements

---

<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:** [31 December 2024 03:34 UTC](https://discourse.nodered.org/t/create-a-dashboard-to-show-a-graph-of-y-3x-x-2/92115/5 "2024-12-31T03:34:55Z")

</div>

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