zakodium-oss / react-plot

Library of React components to render SVG 2D plots. You can check the story book https://react-plot.pages.dev/ or have a look to the extensive documentation
https://react-plot.zakodium.com
MIT License
12 stars 6 forks source link

test: react-plot on server side #458

Closed wadjih-bencheikh18 closed 1 year ago

wadjih-bencheikh18 commented 1 year ago

closes https://github.com/zakodium-oss/react-plot/issues/457

netlify[bot] commented 1 year ago

Deploy Preview for react-plot ready!

Name Link
Latest commit 65fd5ea18d6fe3dce0566e22003338286c90da0c
Latest deploy log https://app.netlify.com/sites/react-plot/deploys/63ac8968572eb70008029899
Deploy Preview https://deploy-preview-458--react-plot.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

lpatiny commented 1 year ago

I would like to be able to achieve something like:

import {createSVG} from 'react-plot';

const jsonData = {};

const svg = createSVG(jsonData, {width: 600, height: 400})

writeFileSync('test.svg', svg, 'utf8')

But we don't have a 'jsonData' format in which we could specify most of the properties from react-plot. @targos Do we want to go in this direction ?