Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Pbiviz files for default visuals

Are the pbiviz files for the all the various default visuals in Power BI (Line Chart, Bar Chart, Pie Chart, etc.) available to download anywhere? I've checked around on Github and a fair bit of the msdn site and can't find anything. 

 

Cheers

4 Replies

  • mahoneypat's avatar
    mahoneypat
    Icon for Microsoft Employee rankMicrosoft Employee

    I don't know if the actual pbiviz or the code for the native visuals is there, but there is a ton of content there (and elsewhere) on making your own visuals.  What are you trying to do?

    Pat

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      I'm trying to use a theme file to set the data colours in the basic visuals (Stacked bar etc.), but I want to set the colour for more than the first data point. Ideally, I'd want to be able to set the colour for the first four data elements. At the * level would be ideal, per viz would also be ok.

       

      Ultimatly, we're hoping to create a org wide theme file that makes it easy for others to create dashboards without too much fidling with the various items inside Power BI itself.

       

      The documented way:

      "dataPoint": [{"defaultColor": { "solid": { "color": "#FFFFFF"}}}]

      is fine, but only allows for the one colour. I was hoping to look through the default pbiviz files to see if there was any undocument elements I could call that might control the colour (similar to how custom visuals can be controlled by referencing their GUID and then then elements they contain). 

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous 

        It seems that we couldn't find default pbiviz file in our computer directly.

        You can try to change the report theme to achieve your goal.

        For more details : Use report themes in Power BI Desktop

        And I found bar chart code from this blog, I hope it could help you.

        Blog:  Build a bar chart

        PowerBI-visuals-sampleBarChart

         

        Best Regards,

        Rico Zhou

         

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

     

    Best Regards,

    Rico Zhou