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

Headless rendering #192

Closed
TudorHulban opened this issue May 2, 2020 · 4 comments
Closed

Headless rendering #192

TudorHulban opened this issue May 2, 2020 · 4 comments
Labels
question Further information is requested

Comments

@TudorHulban
Copy link

hi,
is headless rendering supported? would there be an example?
thank you!

@leeoniya
Copy link
Owner

leeoniya commented May 2, 2020

headless like with node-canvas rather than Puppeteer in headless mode?

the title, legend, cursor, hovered points, and selected area are rendered in the DOM, but you can disable those.

the plot, grid, axes and labels are rendered on Canvas so this part should be do-able with likely some minor tweaks.

@leeoniya leeoniya added the question Further information is requested label May 2, 2020
@TudorHulban
Copy link
Author

something like:
https://www.highcharts.com/blog/news/52-serverside-generated-charts/

the constraint for some solutions is that what you see on browser you should have sent by email.

@leeoniya
Copy link
Owner

leeoniya commented May 2, 2020

ok, this is basically headless Puppeteer or an alternative like what's done in #175.

i don't think there's anything specific that uPlot needs to do in this case. you would just need to provide the matching chart config and data to the server for it to re-render there.

@TudorHulban
Copy link
Author

thank you very much. will try the approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants