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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dailey
Frequent Visitor

Plotly in Power BI

Recently I learned that we can use plotly function of R in Power BI, which I think is awesome. The link is as follows:

https://github.com/Microsoft/PowerBI-visuals/blob/master/RVisualTutorial/CreateRHTML.md

 

However, it seems like the plot generated by plotly squeezes too much, as shown below. Any way to fix this?

q1.png

3 REPLIES 3
stevedep
Memorable Member
Memorable Member

You can take a look at this blog post. It describes how to add an interactive javascript Plotly Chart in Power BI. Its quite easy. 

You can tweak it to your liking. 

 

Kind regards,

 

Steve.

v-yulgu-msft
Employee
Employee

Hi @Dailey,

 

Please refer to below links:

Bar width in bar chart not changing

Customizing Individual Bar Widths

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 Hi Yuliana,

 

Thank you so much for the reply. I don't think it is the problem of R though.

 

I ran the code in RStudio and the plot generated was fine. However, when I imported this into the Power BI, the whole plot got squeezed. So I guess I should probably do something in Power BI.

 

Thank you and best regards,

Dailey

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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