I recently came across holoviews as promising visualization library in python and - as a practice - I wanted to transfer some of my existing code to see how it looks like in hv
. I reached a given plot which I am unable to recreate.
I'd like to visualize a timeline or roadmap where the x
axis is with type of pd.datetime
and the y
is categorical. Something like this:
What Element shall I use? How shall I define start and end position for sections?
This sounds like you need a Gantt chart.
I am using hv.Curve() drawing a line from the starting point in time to the end point in time:
As you can see I've also added some options as an example to change the style of the lines and change the range of the x-axis.
Example code gives you this graph:
Another solution is a more generic way of generating this Gantt plot, which loops over the data and generates a curve for every start/stop point: