Skip to content

Adapt Chart visualization for Dash/Kaleido #49

Closed
@kMutagene

Description

@kMutagene

Description

Currently, The (single) GenericChart type is a tuple of data, layout, and config. Different endpoints such as the Dash Graph component or Kaleido that accept plotly graphs in JSON format however expect these to be fields of the same object, e.g.

{
    "data" : ... , 
    "layout": ..., 
    "config": ...
}

or at least

{
    "data" : ... , 
    "layout": ..., 
}

with the config object being separate

We should adapt the type accordingly, either by making both Union cases of GenericChart inherit from DynObj or abstracting Chart/MultiChart as record types. Additionally, we should adapt the html scaffold for displaying Charts to render plotly graphs directly from that Json instead of declaring data/layout/config objects in a script tag.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions