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.
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?
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.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Hi @Dailey,
Please refer to below links:
Bar width in bar chart not changing
Customizing Individual Bar Widths
Best regards,
Yuliana Gu
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
79 | |
66 | |
62 |
User | Count |
---|---|
145 | |
113 | |
105 | |
85 | |
65 |