Add ImageExport renderer based on running node.js
Nessuno ha ancora preso questa issue.
- Lingua principale
- F#
- Stelle
- 860
- Fork
- 99
- Merge medio
- 22m
- PR unite (30g)
- 1
Descrizione
Description
As plotly.js, the underlying library that Plotly.NET is using needs an environment that can execute javascript to render images programmatically.
https://github.com/tjanczuk/edge seems to be able to run javascript code in node.js from .NET, meaning it should be possible to use plotly.js to render our json objects and save them to a file via node. This would be a big addition, because it would not need a headless browser to achieve this, just a node installation.
Pointers
- here is an answer that shows how to do this with
jsdom: https://stackoverflow.com/a/76070903/5675597 - A reference implementation for this using PuppeteerSharp can be seen here
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Iniziate leggendo src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs e confrontate il relativo flusso di rendering con l’approccio jsdom collegato e il modello di esecuzione Node.js di edge. Definite l’integrazione del renderer basato su Node.js e verificate che gli oggetti JSON di Plotly.NET possano essere renderizzati e salvati come immagini senza un browser headless.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- fsharp, javascript, node.js
- Ambito
- data-visualization
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100