chartjs-node icon indicating copy to clipboard operation
chartjs-node copied to clipboard

Point to font files directly

Open peterecofit opened this issue 6 years ago • 2 comments

Hi all,

Not an issue but a feature request. We're using chartjs-node and it's awesome, however we're using it on AWS Lambda and we are not able to install system fonts. the only way we can add fonts is by targeting the font file directly. Is this something that could be implemented to enable custom fonts when using serverless Lambda?

Thanks!

peterecofit avatar May 17 '18 22:05 peterecofit

Hey @peterecofit thanks for the kind words! What kind of interface are you thinking of here? I'd love to know more how you're getting it working today

sedouard avatar May 18 '18 18:05 sedouard

Hi sedouard, thanks for the response and appologies on getting back so late. We are using chartjs-node in a production environment for our fitness asset management platform (www.ecofitnetworks.com). We are making informative reports for executive fitness club owners, you might recognize 24 Hour Fitness and Gold's Gym, these are some of our biggest customers and they love our reports and love our (your!) charts.

We have a reports automation process realized in AWS Serverless Lambda that is generating our monthly email campaign, with graphs from chartjs-node. We cannot put system fonts on the Lambda instances, in other packages such as pdfkit (http://pdfkit.org/) we are able to load the font along with our lambda package and reference it directly (we can add a direct path to the font). It would be ideal if we were able to reference a font file directly with chartjs-node in the same fashion, as this would allow us to have even better looking charts.

I hope this is comprehensive enough, if not then please don't hesitate to ask more questions!

peterecofit avatar May 28 '18 16:05 peterecofit