Forum Discussion

bartek_wachocki's avatar
bartek_wachocki
New Member
8 years ago

gantt chart - not from custom visuals

Is there a way to create gantt chart manually (not using custom visuals)?

I need it to be saved as pdf. 

 

Here is how it's work in excel:

https://www.youtube.com/watch?v=_u_jm1211D4

 

I need similar workaround.

5 Replies

  • I need to show gantt charts saved to pdf format. Gantt charts from custom visuals (and every other custom visuals) could not be exported to pdf. Is there an option to do a Gantt chart manually?

     

    Like here in excel:

    https://www.youtube.com/watch?v=_u_jm1211D4

     

    I am looking for a similar workaround.

    • v-xjiin-msft's avatar
      v-xjiin-msft
      Icon for Solution Sage rankSolution Sage

      Hi bartek_wachocki,

       

      Based on the video, the way to create a Gantt chart in Excel is to format the Data Series' color in stacked bar chart. For this method, you can also achieve it in Power BI desktop. Please refer to following sample:

       

      Original stacked bar chart:

       

       

      For formatting: go to Format pane -> Data colors and you'll see the colors of all the data series -> change the color to white:

       

       

      Then as I know, currently it is impossible to export Power BI report to pdf format and Power BI REST API has no export operation. But we can print an entire dashboard, a dashboard tile, a report page, or a report visual to PDF from Power BI service.

       

      Reference: https://community.powerbi.com/t5/Desktop/How-to-export-Dashboard-as-PDF-file/td-p/159298 

      https://community.powerbi.com/t5/Desktop/Export-power-bi-charts-graphs-into-excel/td-p/105173 

       

      Thanks,
      Xi Jin.

       

      • bartek_wachocki's avatar
        bartek_wachocki
        New Member

        Hi Xi,

         

        Thanks for support. Maybe I was not precise.

        The idea is to publish the Gantt chart to Power Bi Services and then export to pdf. Sorry I did not mention about it.

        As I know custom visuals cannot be exported to pdf, right?

        So that why I try another way to build this chart

         

        The example you shared is partially right. Gantt charts used to have dates in axis x.

        I could not reproduce the chart using dates. 

        Consider this data set:

         

         

        TaskStart dateDays to compleate
        task123.03.201813
        task225.03.20185
        task330.03.201823
        task406.04.201845
        task507.04.201812
        task608.04.20187
        task709.04.20186
        task810.04.201845
        task911.04.201833

         

         

        B