Closed
Description
In our current code, we assume that the template might be in any string format and so we substitute the anchors as strings. We should really start requiring the templates to be JSON, so we could treat them as dicts internally and have a better control over the special vega options. E.g. smoothing from iterative/dvc#3906 , could be handled not with a separate template but a special plot property (iterative/dvc#3906 (comment)).
- Require templates to be in JSON format
- handle template contents (Template.content currently might be str or dict) as dicts
- add plot smoothing option (might be extracted into as separate issue later, depending on complexity)