I'm using https://www.npmjs.com/package/canvas to create a canvas object and return a dynamic image, server side, that I would like to be able to draw "tabular data" onto. I'm wondering if there's any helper libraries out there, where I could feed it a dataset object/array with columns/rows, and it would take care of all the drawing work, into the 2d context of the canvas object? Right now, i'm agonizing with doing the cartesian math myself: keeping manual track of X/Y position, based on the font size I choose, and the measureText().width function you can use, to calculate the width of text.
Submitted February 19, 2020 at 03:29PM by dupuis2387
No comments:
Post a Comment