vizzuhq / vizzu-lib

Library for animated data visualizations and data stories.
https://lib.vizzuhq.com
Apache License 2.0
1.89k stars 80 forks source link

Server-side rendering (node) #165

Open simzer opened 1 year ago

simzer commented 1 year ago
          Also, does it support server-side rendering?

Originally posted by @Zonalds in https://github.com/vizzuhq/vizzu-lib/issues/147#issuecomment-1447582597

simzer commented 1 year ago

Hi @Zonalds, Unfortunately, we don't have out-of-box support for server-side rendering. We had a test branch earlier based on an old version (0.3.3): https://github.com/vizzuhq/vizzu-lib/tree/nodejs, what we wanted to use for our test environment, but it did not make it to the main branch. We ended up using selenium-chromedriver to render the tests on server-side.

If there is a need, we can revisit this topic. I am curious about what would be your use case for server-side rendering.

veghdev commented 12 months ago

nodejs branch:

rollup version:

schaumb commented 5 months ago

I was a commit that uses an HTML canvas element on text width measure. This should be hidden behind the canvas interface. See here and here. Probably it can be replaced to OffscreenCanvas.