Reconstructs through the chart's setup_* function rather than its
constructor, so a document from any source – another interface, a hand-written
file, a language model – arrives resolved through the same seam a direct call
goes through.
Value
ChartConfig subclass object.
Examples
path <- tempfile(fileext = ".json")
write_chart_config(setup_ScatterConfig(x = "wt", y = "mpg", fit = "glm"), path)
read_chart_config(path)@fit#> [1] "glm"unlink(path)