Skip to content

plots: require templates to be JSON and treat them as such #23

Closed
@efiop

Description

@efiop

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions