# Use .csv file as the source for a dashboard chart?

**URL:** <https://discourse.nodered.org/t/use-csv-file-as-the-source-for-a-dashboard-chart/4292>\
**Category:** Dashboard\
**Created:** [25 October 2018 15:52 UTC](https://discourse.nodered.org/t/use-csv-file-as-the-source-for-a-dashboard-chart/4292 "2018-10-25T15:52:58Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![nodecentral](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodecentral/32/10432_2.png) [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Post date:** [26 October 2018 16:35 UTC](https://discourse.nodered.org/t/use-csv-file-as-the-source-for-a-dashboard-chart/4292/21 "2018-10-26T16:35:47Z")

</div>

Thanks so much @Andrei. - Great job !

Some follow up questions.

How is the time period set for the graph ? Or Will it just look to show everything in the file every time ?

Is there a way for a single date or date range to be selected?  
and if nothing is selected, then it goes to a default period (e.g a couple of days) set ?

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [26 October 2018 17:22 UTC](https://discourse.nodered.org/t/use-csv-file-as-the-source-for-a-dashboard-chart/4292/22 "2018-10-26T17:22:03Z")

</div>

> [@nodecentral](#):
>
> How is the time period set for the graph ? Or Will it just look to show everything in the file every time ?
> 
> Is there a way for a single date or date range to be selected?  
> and if nothing is selected, then it goes to a default period (e.g a couple of days) set ?

Hi @nodecentral, you' re welcome. It was a good exercise.

The chart widget will display everything in the file. If you want to select a date range it is necessary to add additional logic to the flow (to extract and filter the data) or , perhaps better, consider using a database to store the data and later on use its capabilities to query and filter the desired range.

[Previous page](https://discourse.nodered.org/t/use-csv-file-as-the-source-for-a-dashboard-chart/4292.md?page=1)
