pablrod / p5-Chart-Plotly

Generate html/javascript charts with perl data using javascript library Plotly.js
MIT License
9 stars 4 forks source link

Add method from_json to deserialize from json dumps #31

Closed pablrod closed 5 years ago

pablrod commented 5 years ago

Add method to support deserialization from json dumps. This eases the interoperability with other languages (Julia, Javascript, R, Python, ...) using Chart::Plotly::Plot->from_json and Chart::Plotly::Plot->TO_JSON. For example, dumping a plot to JSON from Julia and loading to Perl using this.

Suggested by Eric Smith! Thanks!