cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
cancel
Showing results for 
Search instead for 
Did you mean: 

Gantt chart in dashboard

Amy
New Contributor II

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😞

Screen Shot 2022-06-23 at 1.48.05 PM 

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'
)

3 REPLIES 3

Amy
New Contributor II

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

Vidula
Honored Contributor

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!

alexiswl
Contributor

Hi @Vidula,

I don't think this has been resolved.  

I think gantt charts would look fantastic in a Lakeview Dashboard.  

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group