Skip to content

Support Plotly line attributes #33

@mars0i

Description

@mars0i

I think it would be useful to add Plotly-Hanami substitution keys for line width and dashed/dotted configuration, etc. line attributes:

{:data [{... :line {:width 1} ...} ...]}

The argument is a number, default 2: https://plotly.com/javascript/reference/scatter/#scatter-line-width

{:data [{... :line {:dash} ...} ...]}

This controls whether the line is solid, dashed, dotted, etc. ('Set to a dash type string ("solid", "dot", "dash", "longdash", "dashdot", or "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px").') https://plotly.com/javascript/reference/scatter/#scatter-line-dash

It's of course possible to use these attributes now e.g. using assoc-in on plotly/plot's output, but these seem like they would often be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions