Gantt chart in dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2022
01:51 PM
- last edited on
03-21-2025
06:03 AM
by
Advika
I'd like to create Gantt charts using the dashboard function. It seems like this could be possible by adding some additional parameters in the bar plot functionality, but I don't see how to do it currently (if there is a way, would love an example!).
In altair, this chart type is based on the bar plot, with an additional parameter `x2` that tells where to end the bar.
Example (from altair😞
import altair as alt
import pandas as pd
source = pd.DataFrame([
{"task": "A", "start": 1, "end": 3},
{"task": "B", "start": 3, "end": 8},
{"task": "C", "start": 8, "end": 10}
])
alt.Chart(source).mark_bar().encode(
x='start',
x2='end',
y='task'
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2022 09:06 AM
Hi @Kaniz Fatma ,
Thanks for the response. I use altair for plotting, and as you can see I can easily make the Gantt chart in python in altair using the above code. I'm specifically asking about getting this in the dashboard functionality of Databricks, which seems like it only supports Databricks plotting. Is it possible to use python to create dashboards?
Thanks,
Amy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2022 10:04 PM
Hi @Amy Shapiro
Hope you are doing great!
I just wanted to check in if you were able to resolve your issue or do you need more help. We'd love to hear from you.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2023 02:23 PM
Hi @Vidula,
I don't think this has been resolved.
I think gantt charts would look fantastic in a Lakeview Dashboard.

