Memoized TimeSeries.fromJSON(...) for static or fetched data.
Re-parses only when key changes. If no key is provided, the input is
serialized via JSON.stringify as the cache key — fine for small to
moderate payloads. For large datasets, pass an explicit key (e.g. a fetch
URL or ETag) to avoid the serialization cost.
Memoized
TimeSeries.fromJSON(...)for static or fetched data.Re-parses only when
keychanges. If nokeyis provided, the input is serialized viaJSON.stringifyas the cache key — fine for small to moderate payloads. For large datasets, pass an explicitkey(e.g. a fetch URL or ETag) to avoid the serialization cost.