Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More powerful custom legend entries #75

Open
SolidTux opened this issue Oct 31, 2024 · 2 comments
Open

More powerful custom legend entries #75

SolidTux opened this issue Oct 31, 2024 · 2 comments
Labels
🎁 feature New feature or request

Comments

@SolidTux
Copy link

Currently, add-legend only supports a custom preview function. It would be nice to be able to use the available marks more easily. I got around it by adding this manually, but it seems a bit verbose:

(
  (
    type: "legend-item",
    label: name,
    style: (stroke: none),
    mark: mark,
    mark-size: 0.2,
    mark-style: (fill: black.lighten(75%), stroke: black),
    axes: ("x", "y"),
    data: (),
    preview: auto,
  ),
)
@johannes-wolf johannes-wolf added the 🎁 feature New feature or request label Oct 31, 2024
@johannes-wolf
Copy link
Member

So you want to be able to give all the styling keys you can give to add(...) to add-legend(...)?

@SolidTux
Copy link
Author

SolidTux commented Nov 2, 2024

That would be ideal, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎁 feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants