cal-heatmap
cal-heatmap copied to clipboard
nodejs?
is there anything stopping this from working on the server side? Haven't tried yet :)
How will you use it on NodeJS ?
The graph is only useful when rendered inside a webpage.
a couple of cases for server side rendering to svg/png
- inclusion in reports (pdf)
- inclusion in other online documentation (markdown readme file is my use case)
Happy to have an initial hack if you can suggest a starting vector
I'm afraid I'm not familiar enough with nodejs to help you with this.
@hampsterx the major problem is that the heatmap need a selector (an actual element) to be inserted. It might work if you use jsdom to create a virtual DOM in the server. This guide might help.
Should works fine since v4, as all jest tests are now using JSDOM and node