Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to generate a Chart img / Add possibility to generate chart in Base64 format #220

Closed
Stephanevg opened this issue Mar 27, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Stephanevg
Copy link
Owner

In order to support scenarios like senind the html document per Email, I would like to add the possibility to embed the ChartJs Chart in the html document as a Base64 image, instead of the raw Javascript code that is currently used.

The following ressource might be a straight highway to that one(?)

Link

On the function level, I can imagine we add a switch AsEmbededImage or AttachImage or something in that direction in the Function New-PSHTMLChart
When used, the javascript code would be rendered once in the canvas, and then from the canvas, the canvas would be converted to an image, converted to base64 string, and embeded in an img tag as base64 encoding.

Althougt this will open the possibility to get rid of the embedded Javascript code, this might have a direct impact on the page size. This must be analyzed and compared, and clearly documented for the end user.

@Stephanevg Stephanevg added the enhancement New feature or request label Mar 27, 2019
@Stephanevg Stephanevg added this to the 0.8.1 milestone Jul 20, 2019
@Stephanevg Stephanevg changed the title Add possibility to generate a Chart img. Add possibility to generate a Chart img / Add possibility to generate chart in Base64 format Oct 20, 2019
Stephanevg added a commit that referenced this issue Oct 20, 2019
Added support for generating Chart images to Base64 #220
Make PSHTML documents self contained to send via Email automation moved this from To do to Done Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant