-
Hello, I am looking for a way to visualize event data (data at discrete datetimes). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @s-wel, do you have some code to reproduce it? Check if your column is of datetime type and not string. |
Beta Was this translation helpful? Give feedback.
-
The example is more like the first graph, but a one-dimensional scatter plot. Each element in the plot has a "Date", "id", and "Event" value. Date is the x-axis value and Event is the y-axis value (id is the selector when clicking on an element in the plot). Each element uses an empty string for "Event" to ensure that all elements are on the same horizontal level (same value for y-axis). This mimics a one-dimensional timeline visualization where each plot element represents one time-specific event. It is not that great in case events have the same Date value, but it works as a first solution for my case. |
Beta Was this translation helpful? Give feedback.
I found out what the issue is. The plotly library only accepts strings formatted like "%Y-%m-%d %H:%M:%S.%f". If the resulting column is a string with this format, the x-axis properly positions the events. I suggest you add this to the documentation here: https://docs.taipy.io/en/latest/refmans/gui/viselements/generic/charts/basics/#using-a-time-series