Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
amaaiia
Super User
Super User

Gantt chart for machine status with dynamic color

I need to create a Gantt chat por differente machine status, showing the status info of each machine in the same row, one after another. This is possible to reach (https://community.fabric.microsoft.com/t5/Developer/Gantt-chart-V-2-2-3-show-all-status-in-one-row-d.... Is it possible to set the color of the "tasks" by code? In Format Visual>Visual>Legend, you can manually select the color. But I have one task_color field with the hexadecimal color I need to set. Could it be possible?

 

If not, is there any other free Gantt chart or similar so I can reach this behaviour?

1 ACCEPTED SOLUTION
rohit1991
Super User
Super User

In the standard Power BI Gantt chart visual (including the Microsoft Gantt and the “Gantt 2.2.3” custom visual), it’s not possible to set task colors dynamically using a field (like your task_color hex field). Colors can only be set manually in the visual formatting options, not by data.

Alternatives:

  1. Deneb or Charticulator:
    Both are free custom visuals that support dynamic color assignment using fields. You can design a Gantt-like chart and bind bar colors to your hex color field. This requires a bit of setup, but it gives you full control.

  2. Custom Visuals from Marketplace:
    Some other Gantt or timeline visuals might allow more flexible color formatting, but most free ones have similar limitations as the standard Gantt. Paid visuals (like xViz Gantt) do support this feature, but you’d need a license.

Out of the box, the default Gantt visual doesn’t support color-by-field. Use Deneb or Charticulator for full flexibility with dynamic colors, or look into third-party visuals if you need a ready-made solution.

 

Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

View solution in original post

4 REPLIES 4
v-echaithra
Community Support
Community Support

Hi @amaaiia ,

We just wanted to follow up to ensure that your issue has been fully resolved. If there are any outstanding questions or if you need further assistance with anything, please don’t hesitate to reach out. We’re always here and happy to help in any way we can.

Your satisfaction is important to us, and we want to make sure you have everything you need.

Warm regards,
Chaithra E.

 

v-echaithra
Community Support
Community Support

Hi @amaaiia ,

Just checking in to confirm that your issue has been resolved. If you have any remaining questions or need additional assistance, feel free to reach out, we're always here to help.

Best Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @amaaiia ,

Thank you @rohit1991  for your valuable inputs.

We’d like to confirm whether your issue has been successfully resolved. If you still have any questions or need further assistance, please don’t hesitate to reach out. We’re more than happy to continue supporting you.

Best Regards,
Chaithra E.

rohit1991
Super User
Super User

In the standard Power BI Gantt chart visual (including the Microsoft Gantt and the “Gantt 2.2.3” custom visual), it’s not possible to set task colors dynamically using a field (like your task_color hex field). Colors can only be set manually in the visual formatting options, not by data.

Alternatives:

  1. Deneb or Charticulator:
    Both are free custom visuals that support dynamic color assignment using fields. You can design a Gantt-like chart and bind bar colors to your hex color field. This requires a bit of setup, but it gives you full control.

  2. Custom Visuals from Marketplace:
    Some other Gantt or timeline visuals might allow more flexible color formatting, but most free ones have similar limitations as the standard Gantt. Paid visuals (like xViz Gantt) do support this feature, but you’d need a license.

Out of the box, the default Gantt visual doesn’t support color-by-field. Use Deneb or Charticulator for full flexibility with dynamic colors, or look into third-party visuals if you need a ready-made solution.

 

Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.