Configure the chart (type, aggregation, format), then Save layout serializes it with
chart.toJSON() into localStorage. Change things, then Restore layout
rebuilds it with chart.restore(config). Plain JSON — the app owns where it's stored.