# Combining two lists into one Dataset

**URL:** <https://forum.inductiveautomation.com/t/combining-two-lists-into-one-dataset/32082>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [February 10, 2020, 4:40am UTC](https://forum.inductiveautomation.com/t/combining-two-lists-into-one-dataset/32082 "2020-02-10T04:40:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdia](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mdia/32/87599_2.png) [@mdia](https://forum.inductiveautomation.com/u/mdia)\
**Post date:** [February 10, 2020, 4:40am UTC](https://forum.inductiveautomation.com/t/combining-two-lists-into-one-dataset/32082/1 "2020-02-10T04:40:47Z")

</div>

Hi, I have two lists containing different data from two machine run cycles and they both share the same headers. The first column is the time stamp for each run, so one of these lists might have more rows than the other assuming that one machine runs for a longer time than the other machine. I want to combine these lists into 1 dataset and then insert that dataset into a chart component for comparing data from the two runs. Any ideas on how to do that? Thank you.

---

<div class="post-metadata">

**Author:** ![Kevin.McClusky](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kevin.McClusky](https://forum.inductiveautomation.com/u/Kevin.McClusky)\
**Post date:** [February 10, 2020, 9:31am UTC](https://forum.inductiveautomation.com/t/combining-two-lists-into-one-dataset/32082/2 "2020-02-10T09:31:30Z")

</div>

You might just set up the chart component with two different datasets, instead of combining them. The Vision Chart component works well with multiple datasets.
