# View Params as dataset for chart

**URL:** <https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876>\
**Category:** Ignition\
**Created:** [June 22, 2020, 3:55pm UTC](https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876 "2020-06-22T15:55:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tstanford](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@Tstanford](https://forum.inductiveautomation.com/u/Tstanford)\
**Post date:** [June 22, 2020, 3:55pm UTC](https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876/1 "2020-06-22T15:55:49Z")

</div>

I’m making a perspective view that I plan to use several instances of later on for different instances of the same machine.

I have my params working for everything else but I can’t figure out how to use a param as the dataset for a chart. When I try and bind it as tag history it won’t work. Kind of at a loss here and my knowledge of SQL is a bit weak, I was wondering if anyone here had a resource that could help me or if anyone knew an answer?

Thanks for your time guys!

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 22, 2020, 4:28pm UTC](https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876/2 "2020-06-22T16:28:05Z")

</div>

Amm, not entirely sure but still would try to answer.

You might have to configure that part a little rather than just directly binding it.  
Is it a history tag ? or a chart data points coming up from the OPC tag every constant duration (evert second or half a second !)

Normal Chart Expects data in this form -

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/aff467a3536087e661d7454e197d1ccc93616a53.png)  
which is,  
[[Time, Torque], [[0,0],[10,-0.2]…]

You can have the Indirect Reference to this dataset tag from params as below -

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/ef481505a5b0e2336dc1ba6d57aa465b8672087c.png)

Once you have this, Map datasource of your chart to this parameter as like this :

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/1/a17db04d368aa51996177c09c438790c0cfdefb1.png)

Rest, you can configure in the Series Prop of the Chart !!

---

<div class="post-metadata">

**Author:** ![Tstanford](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@Tstanford](https://forum.inductiveautomation.com/u/Tstanford)\
**Post date:** [June 22, 2020, 6:35pm UTC](https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876/3 "2020-06-22T18:35:59Z")

</div>

I thought I tried that so I started over and found out my input parameter was value and not array and now it works fine haha.

I appreciate the fast response! If you ever find yourself in the dallas area let me know I owe you a beer!

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [June 22, 2020, 8:01pm UTC](https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876/4 "2020-06-22T20:01:40Z")

</div>

Glad it worked !!

---

<div class="post-metadata">

**Author:** ![Sray\_Tech](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@Sray\_Tech](https://forum.inductiveautomation.com/u/Sray_Tech)\
**Post date:** [October 8, 2024, 11:40am UTC](https://forum.inductiveautomation.com/t/view-params-as-dataset-for-chart/35876/5 "2024-10-08T11:40:01Z")

</div>

Hello I have seen this post, but still I can't figure out how to do it.  
I want to pass the dataset as a parameter to plot it on chart which is on another view. Please help me with this.
