web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Chart to image for HTM...
Power Apps
Answered

Chart to image for HTML report

(0) ShareShare
ReportReport
Posted on by 248

Hi there,

 

I have a question related with my last post.

 

Now I would like to use the chart in my HTML reports, but I can't find an answer.

 

Is it possible do it?

 

Thank you in advance.

Categories:
  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on at

    @Manarjomar

     

    Which Post? 

  • Manarjomar Profile Picture
    248 on at

    Hi @PowerRanger ,

     

    Was to show a chart from diferent sources in a collection:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Chart-from-a-gallery-or-collection-from-two-data-sources/m-p/728458#M233164

     

    But is different question, because now I have the chart but I want to add it on a html file.

     

    Thanks.

  • Verified answer
    Manarjomar Profile Picture
    248 on at

    Finally I did it by myself...

     

    Meanwhile we are waiting to add this feature in PowerApps, I found the best way (I think) to do it...

    The solution is use the Google API "Google Charts" (https://developers-dot-devsite-v2-prod.appspot.com/chart/interactive/docs/gallery/columnchart.html)

     

    Using "concat" function you can get the values of each record and build the HTML to show the chart.

     

    Screenshot_7.png

     

    I hope can help.

     

    Thank to read.

     

  • vllanso Profile Picture
    143 on at

    @Manarjomar , can you please explain a little bit more how to call the google chart api.

    I understand the part you mention about concatenating the data to be used in the chart, but after that, how do you call the google chart api ?

     

    If you can provide some more information, I would greately appreciate.

     

    Thanks, Victor.

  • PowerDigitize_1 Profile Picture
    82 on at

    Hi @Manarjomar, 

     

    I am trying to do something similar. 

    Create a chart and convert it into an image and add it to PDF. 

    Can you pls advise how you managed to achieve this?

     

  • kvn_912 Profile Picture
    13 on at

    Does anyone else has a more detailed explanation on how to do it? I can generate an html file with the chart but how do I convert it to jpg or pdf?

  • vllanso Profile Picture
    143 on at

    @kvn_912 , when you mention that you have an html file, is that a physical file in disk or a sharepoint folder ? or is it an html control in a powerapp ?

    Anyway, if you google for "powerapps html to pdf", you will get plenty of ideas, many of them related to using a powerautomate flow to convert an html content to PDF using the "Convert file using path" OneDrive action.

    Also you have available the experimental function PDF(link), that can generate a PDF for instance with the information that is in a cointainer in a powerapp.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard