Display a chart image in Excel
When you perform a GET operation to retrieve a chart image, the Excel API in Microsoft Graph returns the image as a base-64 string. You can display the base-64 string inside an HTML image tag:
<img src="data:image/png;base64,{base-64 chart image string}/>
For default behavior, use Image(width=0,height=0,fittingMode='fit')
.
Following is an example of a chart image returned with the default parameters.
If you want to customize the display of the image, specify a height, width, and a fitting mode. Here is what the same chart image looks like if you retrieve it with these parameters: Image(width=500,height=500,fittingMode='Fill')
.
Related content
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho