Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Not applicable

Gantt chart with reference vertical lines

Expected chart:



 y-axis: Tasks

x-axis: Dates

Reference lines(more than one): some specific dates


For plotting I'm using custom visual - Gantt (version- from power bi market place which is an open-source visual (code available at Github: ). 


I'm able to plot the duration (start date to end date) of each Task but not able to plot reference lines (which are vertical lines as shown in the graph).

Sample Data:

Gantt Dataset.JPG


Any idea of how to achieve the above scenario will be helpful. Thanks in advance.

@ganttchart @customvisual 

@Greg_Deckler  @v-danhe-msft @v-chuncz-msft  @GuyInACube @datanaut 





Gantt has got Milestones bucket to set up vertical lines.
You can look through standard report to figure out how to use them.







I hope this will help to solve your issue.


Kind Regards,


Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals

Not applicable

Hello, @v-evelk  Thanks for your response.

But my milestones(ref's lines) are dependent on Project name and not on Tasks. Those are random dates which I have to plot on the visual. Which will come up as a straight line as shown in my post above.

You are right that milestone records are considered as tasks but task records are just containers for them in this case.

In fact, you can call your milestone records as "ProjectName Milestone [1|2|3]" to show relation with a certain project.




Kind Regards,


Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors