Function cpplot::to_json(nlohmann::json&, const ScatterPlot&)

Function Documentation

void cpplot::to_json(nlohmann::json &j, const ScatterPlot &p)

Serialise scatter plot data into a valid json string.

Produces figure data JSON similar to: {“x”: [24.23, 3.4, 8.4], “y”: [20.1, 14.4, 23.3], “type”: “scatter”}