My goal is to generate this wrapper automatically. For this I need a readable structure that contains all attributes of all traces, configs, etc.
I tried to read these attributes locally using node.js, but unfortunately I only get compiler errors like “ReferenceError: window is not defined”. I have never worked with node.js before, so I am a bit overwhelmed.
I would be glad about your support and hope to make Plotly.js possible in the .NET world!
Awesome idea! We do this for the Python and R libraries and others have done it for other languages like Scala.
The up to date reference for the schema is always available at https://raw.githubusercontent.com/plotly/plotly.js/master/dist/plot-schema.json and it’s generated when building the library. We do this for every release and keep this file up to date.
Thanks a lot for the link, it was exactly what I was looking for!
More information about the project will follow as soon as it is running!
Have a good start into the week!
I also use the schema and a Gradle build to generate a TypeScript definition that is much more expansive than the one currently hosted at DefinitelyTyped.