# Timeline

**URL:** <https://community.neo4j.com/t/timeline/58257>\
**Category:** Graph Academy\
**Tags:** migrated\
**Created:** [January 5, 2023, 10:46am UTC](https://community.neo4j.com/t/timeline/58257 "2023-01-05T10:46:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmssz](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@tmssz](https://community.neo4j.com/u/tmssz)\
**Post date:** [January 5, 2023, 10:46am UTC](https://community.neo4j.com/t/timeline/58257/1 "2023-01-05T10:46:16Z")

</div>

Hallo Community,

I have a question regarding creating timelines with dynamic selection.

So my question is - is it possible to create such diagram in any of Neo4j tools or should I look for external tools?

What I need to show is:

1. timeline for events generall for all countries

2. timeline with selected country

As I understand Graph DB ... I should create a relationship between elements based on date but it will be extremely difficult to make changes. For one country it is ok - MATCH and then show the result. But for many countries I see problem with data shared between other countries and timeline. Is there any other way?

Thanks.

T.

---

<div class="post-metadata">

**Author:** ![tmssz](https://avatars.discourse-cdn.com/v4/letter/t/e36b37/32.png) [@tmssz](https://community.neo4j.com/u/tmssz)\
**Post date:** [January 5, 2023, 7:14pm UTC](https://community.neo4j.com/t/timeline/58257/2 "2023-01-05T19:14:21Z")

</div>

Thank you for tips I think I know how to do it.

So I am going to add properties like :TIME and :COUNTRY and then make it as dynamic relationship creation.

Step 1: list all nodes - sort based on date and then based on the result of the loop make relationship.

After add/delete of the element I have to delete relations and create them again.

I definetely must see other courses in Neo4j Academy.

Thanks for help.

---

<div class="post-metadata">

**Author:** ![jalakoo](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jalakoo/32/27445_2.png) [@jalakoo](https://community.neo4j.com/u/jalakoo)\
**Post date:** [January 5, 2023, 4:34pm UTC](https://community.neo4j.com/t/timeline/58257/3 "2023-01-05T16:34:51Z")

</div>

[@tmssz](https://community.neo4j.com/t5/user/viewprofilepage/user-id/16274), I think there are 2 questions here?

1st. There are 2 diagramming Neo4j tools: [arrows.app](https://arrows.app/) and the. Attached is a screen grab of your drawio.png in this [public arrows.app example](https://drive.google.com/file/d/14EUK1wHJchT4tLl0jtjS-Lz8q1FESXWF/view?usp=sharing) I quickly put together.

 ![Screen Shot 2023-01-05 at 8.23.13 AM.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/e/7/e7bd3991244ec528aa03419ae4d0193b2a8e28a0.png "Screen Shot 2023-01-05 at 8.23.13 AM.png")

2nd. I think the structure you're modeling here is a time tree, which isn't a recommended way of storing time related data anymore. You can add temporal properties to nodes, just add a date property then use operators in your queries matches in your target time ranges. This [other community thread](https://community.neo4j.com/t5/neo4j-graph-platform/relation-on-nodes-with-respect-of-time/m-p/54471) discusses this.

For more details on time data see the docs [here](https://neo4j.com/docs/cypher-manual/5/syntax/temporal/#cypher-temporal-instants), and specifically for using comparison operators on them [here](https://neo4j.com/docs/cypher-manual/current/syntax/operators/#_equality).

---

<div class="post-metadata">

**Author:** ![jalakoo](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jalakoo/32/27445_2.png) [@jalakoo](https://community.neo4j.com/u/jalakoo)\
**Post date:** [January 6, 2023, 5:50pm UTC](https://community.neo4j.com/t/timeline/58257/4 "2023-01-06T17:50:51Z")

</div>

You're welcome!

Just realized the text and link to the other diagraming option, data-importer, didn't make it in my reply. So here's a link to it: [https://data-importer.graphapp.io/](https://data-importer.graphapp.io/)

You can use that tool to import .csv data directly into a Neo4j instance, as well. The arrows.app however is easier to share.
