# Perspective XY Chart As Bar chart as like Vision

**URL:** <https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting, perspective\
**Created:** [December 20, 2022, 4:16am UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815 "2022-12-20T04:16:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sri\_Haran](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sri\_Haran](https://forum.inductiveautomation.com/u/Sri_Haran)\
**Post date:** [December 20, 2022, 4:16am UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815/1 "2022-12-20T04:16:51Z")

</div>

Hello All, Good Day,  
I would like to know is there any possibilities like appending a dataset to datasources of XY chart through scripting Though i tried the same in vision it works fine but its not working in perspective, Below are my XY Chart properties

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/0/603f9915dcc65a44ff47b67a9c0b5b0f38b2abae.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bfcc2ee3818ed456acad90acfe6d3344380d63b1.png)  
I don't know where i was missing the steps to do can anyone guide me on the same,  
Thanks in Advance..!  
Regards,  
Sri

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 20, 2022, 7:34am UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815/2 "2022-12-20T07:34:25Z")

</div>

This seems to be what you are searching for:

> [@Stacked Bar Chart in Perspective - Detailed Steps](https://forum.inductiveautomation.com/t/stacked-bar-chart-in-perspective-detailed-steps/47107):
>
> Few months ago I needed to create a stacked bar chart and ran into issues ([Perspective 8.0.14 Time Series Bar Chart width - #3 by arun1](http://forum.inductiveautomation.com/t/perspective-8-0-14-time-series-bar-chart-width/37160/3)). There are few posts here but they don’t give a full picture. Here are the steps that I took to create one: First it is worthwhile to note that we need to use the XY chart and not the TimeSeries chart because the width of the bar chart is calculated automatically based on the amount of data in the x-axis so if you have sparse data in a wide time range then th…

---

<div class="post-metadata">

**Author:** ![Sri\_Haran](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sri\_Haran](https://forum.inductiveautomation.com/u/Sri_Haran)\
**Post date:** [December 20, 2022, 8:24am UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815/3 "2022-12-20T08:24:30Z")

</div>

Thanks @justinedwards.jle  
Actually i want to know about how to create the relationship between those datasets to series field and i was stuck in that point could you help me in this part?  
Regards,  
Sri

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 20, 2022, 2:24pm UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815/4 "2022-12-20T14:24:51Z")

</div>

> [@Sri\_Haran](#):
>
> appending a dataset to datasources

Are wanting to add another dataset to an existing dataset in your data property, or are you looking to bind the data property to a data source in order to produce a dataset?

---

<div class="post-metadata">

**Author:** ![Sri\_Haran](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sri\_Haran](https://forum.inductiveautomation.com/u/Sri_Haran)\
**Post date:** [December 21, 2022, 3:54am UTC](https://forum.inductiveautomation.com/t/perspective-xy-chart-as-bar-chart-as-like-vision/67815/5 "2022-12-21T03:54:33Z")

</div>

No Just added a dataset to the example datasource and configured the series fields as follow

Have a great Day!
