Add an easy way to serialize GenericChart directly #399
Labels
Area: Core API
Area: MissingAbstraction
Plotly.js functionality that has to be implemented
Type: Enhancement
Currently, JSON serialization is hidden internally, for example here:
Plotly.NET/src/Plotly.NET/ChartAPI/GenericChart.fs
Lines 243 to 255 in 324856f
It should be an easy addition to add two functions:
GenericChart.toFigureJson
, returns the DTO originally intended for exchange with dash:GenericChart.toJson
, returns the json representatin that is used in the generated html:The text was updated successfully, but these errors were encountered: