# Timeline plugin

**URL:** <https://forum.xojo.com/t/timeline-plugin/46583>\
**Category:** Getting Started\
**Created:** [December 10, 2018, 5:36pm UTC](https://forum.xojo.com/t/timeline-plugin/46583 "2018-12-10T17:36:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Nogler](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Michael\_Nogler](https://forum.xojo.com/u/Michael_Nogler)\
**Post date:** [December 10, 2018, 5:36pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/1 "2018-12-10T17:36:59Z")

</div>

This is my first post, so take my appologees if I make mistakes here. I have been using Xojo for 4 years now and am extremely happy with it. For a new project I would need to show data ordered by date in a timeline, that can be zoomed in and out from years to actually days. I was looking for a plugin that could help me with that, but dwas unsuccessful to find one. Before I start developping one on my own, I just wanted to ask you all, if anybody had worked on such a project alreday and would share his/her experience with me.

I would also like to thank so many of you who have contributed to this forum - the knowledge here is a treasure that has helped me through the past years, beeing non-professional in coding.

---

<div class="post-metadata">

**Author:** ![scott\_boss](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@scott\_boss](https://forum.xojo.com/u/scott_boss)\
**Post date:** [December 10, 2018, 5:50pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/2 "2018-12-10T17:50:57Z")

</div>

> [@417372:@Michael Nogler](#):
>
> I would also like to thank so many of you who have contributed to this forum - the knowledge here is a treasure that has helped me through the past years, beeing non-professional in coding.

all of us are thankful for those of us that help others on the forums. WIthout that help many of us would have failed over the years. it is just one aspect of a very good community around Xojo.

And now that you have broken into the forums, please be a regular.  
sb

---

<div class="post-metadata">

**Author:** ![Bob\_Keeney](https://forum.xojo.com/letter_avatar_proxy/v4/letter/b/54ee81/32.png) [@Bob\_Keeney](https://forum.xojo.com/u/Bob_Keeney)\
**Post date:** [December 10, 2018, 6:09pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/3 "2018-12-10T18:09:34Z")

</div>

I don’t know of any 3rd party controls so no luck there. I worked on a timeline for some legal software a number of years ago but I can’t share that code even if I still had it.

If I recall correctly, It wasn’t terribly hard to do. I created an events class that had all the details of the event. I created a canvas subclass that had an array of these events and start/end dates to the timeline, tick marks etc. The canvas responded to double click (edit) and drag events (tweak placement). If memory serves the only tricky part was the line from the event to the timeline (because it wasn’t always a straight line).

I know this isn’t real helpful other than to be able to tell you that it can be done in Xojo and it’s not awfully hard. I would say work on it incrementally. Get A working to your satisfaction before starting on B and so on.

---

<div class="post-metadata">

**Author:** ![Michael\_Nogler](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Michael\_Nogler](https://forum.xojo.com/u/Michael_Nogler)\
**Post date:** [December 10, 2018, 6:19pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/4 "2018-12-10T18:19:52Z")

</div>

Thanks a lot so far - a least it can be done.

---

<div class="post-metadata">

**Author:** ![Jean-Yves\_Pochez](https://forum.xojo.com/user_avatar/forum.xojo.com/jean-yves_pochez/32/21769_2.png) [@Jean-Yves\_Pochez](https://forum.xojo.com/u/Jean-Yves_Pochez)\
**Post date:** [December 10, 2018, 6:40pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/5 "2018-12-10T18:40:32Z")

</div>

you can do almost anything in xojo (and without plugin) it just takes more or less time !

---

<div class="post-metadata">

**Author:** ![Beatrix\_Willius](https://forum.xojo.com/user_avatar/forum.xojo.com/beatrix_willius/32/282_2.png) [@Beatrix\_Willius](https://forum.xojo.com/u/Beatrix_Willius)\
**Post date:** [December 10, 2018, 6:42pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/6 "2018-12-10T18:42:01Z")

</div>

You could a Javascript based solution in a HtmlViewer. Admittedly, this is a bit perverse. See for instance here: [https://bashooka.com/coding/javascript-timeline-libraries/](https://bashooka.com/coding/javascript-timeline-libraries/)

---

<div class="post-metadata">

**Author:** ![Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/user_avatar/forum.xojo.com/eduardo_gutierrez_de_oliveira/32/264_2.png) [@Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/u/Eduardo_Gutierrez_de_Oliveira)\
**Post date:** [December 12, 2018, 8:20am UTC](https://forum.xojo.com/t/timeline-plugin/46583/7 "2018-12-12T08:20:56Z")

</div>

> [@417393:@Beatrix Willius](#):
>
> You could a Javascript based solution in a HtmlViewer. Admittedly, this is a bit perverse. See for instance here: [10+ Best Javascript Timeline Libraries 2022 – Bashooka](https://bashooka.com/coding/javascript-timeline-libraries/)

I’ve found htmlviewer solutions work really well as long as you make sure they don’t behave weirdly in some particular scenarios. The typical issue that “breaks the illusion” is that the content scrolls by mistake when using a magic trackpad or mouse, or when used in touchscreens. Having a part of a window scroll inside an invisible container is jarring. If this part is controlled (using the proper css and head meta tags) it should be transparent.

There was another common issue in the past but I think it’s solved these days: htmlviewers used to have different antialiasing for fonts and different image resizing algorithms, to their contents would sometimes look slightly different than other parts of the window.

The potential overhead of an htmlviewer may be unacceptable for some, though. I try to use them a lot myself, especially nowadays that there are so many nice pre-built solutions out there.

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [December 12, 2018, 10:39am UTC](https://forum.xojo.com/t/timeline-plugin/46583/8 "2018-12-12T10:39:57Z")

</div>

[quote=417372:@Michael Nogler]This is my first post, so take my appologees if I make mistakes here. I have been using Xojo for 4 years now and am extremely happy with it. For a new project I would need to show data ordered by date in a timeline, that can be zoomed in and out from years to actually days. I was looking for a plugin that could help me with that, but dwas unsuccessful to find one. Before I start developping one on my own, I just wanted to ask you all, if anybody had worked on such a project alreday and would share his/her experience with me.

I would also like to thank so many of you who have contributed to this forum - the knowledge here is a treasure that has helped me through the past years, beeing non-professional in coding.[/quote]  
It would be helpful to have a picture showing what you are looking for. Beatrix link shows how different peoples opinions of timeline can be conceived.

---

<div class="post-metadata">

**Author:** ![Louis\_D](https://forum.xojo.com/letter_avatar_proxy/v4/letter/l/cab0a1/32.png) [@Louis\_D](https://forum.xojo.com/u/Louis_D)\
**Post date:** [December 12, 2018, 3:03pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/9 "2018-12-12T15:03:56Z")

</div>

Perhaps you could check with @Jeremie Leroy. On his site, there is a mention that he is planning to add a timeline functionality to his chartview plugin.

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [December 12, 2018, 3:07pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/10 "2018-12-12T15:07:03Z")

</div>

if you like charts, maybe you check the [MBS Xojo ChartDirector Plugin](http://www.monkeybreadsoftware.de/xojo/plugin-chartdirector.shtml)?  
Maybe one of the 200 example projects does what you need.

---

<div class="post-metadata">

**Author:** ![Paul\_Finer](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/c67d28/32.png) [@Paul\_Finer](https://forum.xojo.com/u/Paul_Finer)\
**Post date:** [December 12, 2018, 4:55pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/11 "2018-12-12T16:55:48Z")

</div>

I think the Gantt charts in the ChartDirector Plugin might be what you are after.  
Here’s a link to their Gantt gallery [](https://www.advsofteng.com/gallery_gantt.html)

---

<div class="post-metadata">

**Author:** ![Michael\_Nogler](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Michael\_Nogler](https://forum.xojo.com/u/Michael_Nogler)\
**Post date:** [December 16, 2018, 10:47pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/12 "2018-12-16T22:47:52Z")

</div>

Thanks all of you again - I will have a closer look to chartDirector Plugin - seems close to what I want.

---

<div class="post-metadata">

**Author:** ![Michael\_Nogler](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@Michael\_Nogler](https://forum.xojo.com/u/Michael_Nogler)\
**Post date:** [January 2, 2019, 5:23pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/13 "2019-01-02T17:23:03Z")

</div>

I have played around a little bit with your proposals. Beatrix’ advise was great and simple to get it working. So I eventually went with this one. I am using the SIMILE timeline in htmlviewer and it looks really very nice.

Thanks a lot Beatrix

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:29pm UTC](https://forum.xojo.com/t/timeline-plugin/46583/14 "2020-10-29T19:29:29Z")

</div>


