Skip to content

Plot.link default channels? #116

@Fil

Description

@Fil

It might be nice to set "x1", "x2", "y1", "y2" as the default channels for Plot.link.

This would allow to write:

Plot.link([{x1: 0, y1: 0, x2: 8, y2: 8}])
instead of
Plot.link([null], {x1:[0], y1: [0], x2: [8], y2: [8]})
for the common case of using links as support lines.

Also, it might make an interesting combination with the stackY plugin (#109), which results in y1-y2 values. (no, it doesn't change anything on that front)

Metadata

Metadata

Assignees

Labels

questionFurther information is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions