# Create timeline chart

**URL:** <https://community.amazonquick.com/t/create-timeline-chart/17402>\
**Category:** Q&A\
**Tags:** quick-sight\
**Created:** [August 25, 2023, 7:36am UTC](https://community.amazonquick.com/t/create-timeline-chart/17402 "2023-08-25T07:36:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fotis\_flex](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@Fotis\_flex](https://community.amazonquick.com/u/Fotis_flex)\
**Post date:** [August 25, 2023, 7:36am UTC](https://community.amazonquick.com/t/create-timeline-chart/17402/1 "2023-08-25T07:36:35Z")

</div>

Hello,

I have a dataset with fields like start\_date and end\_date which reflect when an asset is unavailable. I want to create a timeline chart where the x axis will have a calendar. Namely, it should start with a date, for e.g 2010-01-01 and enable user to scroll and display future days with 1 day interval. My goal is to show a red line parallel to x axis line for the dates between start\_date and end\_date and a green line otherwise.  
I wonder what’s the most efficient way to do this? I saw QS doesn’t have the option timeline chart. My thought is to import the dataset to Python, iter over the rows, get all dates between start\_date and end\_date and fill a new column accordingly to display availability. Then import back on QS and plot somehow the calendar dates with the availability field to get green/red for date intervals. However, this approach will change the original dataset which is not desirable. I wonder whether there is a better way to do this? Any ideas?  
Thx

---

<div class="post-metadata">

**Author:** ![Max](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/max/32/2288_2.png) [@Max](https://community.amazonquick.com/u/Max)\
**Post date:** [August 25, 2023, 12:28pm UTC](https://community.amazonquick.com/t/create-timeline-chart/17402/2 "2023-08-25T12:28:04Z")

</div>

I would suggest creating a calendar in SQL and joining your data onto it.

> <https://stackoverflow.com/questions/46794175/postgres-query-for-calendar>
