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

Function Documentation

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

Serialise bar plot data into a valid json string.

Produces figure data JSON similar to: {“x”: [“giraffes”, “orangutans”, “monkeys”], “y”: [20.1, 14.4, 23.3], “type”: “bar”}