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

Feature request: Render chart without DOM #439

Open
ahoyahoy opened this issue Sep 2, 2024 · 2 comments
Open

Feature request: Render chart without DOM #439

ahoyahoy opened this issue Sep 2, 2024 · 2 comments

Comments

@ahoyahoy
Copy link

ahoyahoy commented Sep 2, 2024

Hi there,

I've been trying to use the library in Node.js to render the graph as a string.
I also experimented with jsdom, but encountered numerous obstacles and couldn't get it to work.

If the library is framework-agnostic, would it be possible to add a variant where features like ResizeObserver, event listeners, etc., are not required?

Something like this would be very helpful.

const SvgElem = new XYContainerStatic({
    width: 800,
    height: 300,
    classnames: 'xy',
    components: [line],
    xAxis: new Axis(),
    yAxis: new Axis(),
  }, data);
@rokotyan
Copy link
Contributor

rokotyan commented Sep 3, 2024

Thanks for the feedback @ahoyahoy!

I've been thinking about implementing this feature for over a year. Unfortunately, we don't have the bandwidth for it right now, but if you're interested in exploring it, I can help you run the Unovis development environment (it'll be pretty easy) and show you the parts of the code you might need to update.

If not, I'm sure we'll add support for server-side rendering at some point, but I don't know when.

@ahoyahoy
Copy link
Author

@rokotyan thanks! :)
If I get to it before you do, I'll let you know.

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

No branches or pull requests

2 participants