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

Color or filter annotations based on an attribute #263

Open
manthey opened this issue Feb 7, 2023 · 1 comment
Open

Color or filter annotations based on an attribute #263

manthey opened this issue Feb 7, 2023 · 1 comment

Comments

@manthey
Copy link
Contributor

manthey commented Feb 7, 2023

If we have a set of annotation elements, it is sometimes useful to have additional properties per element. These could be stored in the element's user property or in the parent annotation's attributes property. If many elements had a numerical value with a common property key or the annotation contained a property in the attributes that was a vector the length of the elements, then this property could be used to color or filter the annotation.

For polygons, we can control the stroke weight, stroke color and opacity, and fill color and opacity; colors could represent multiple or one value; opacity could be used as the filter (but would need to also no longer be hoverable).

For other elements, we may have other parameters we can vary (e.g., use markers instead of circles for points).

@manthey
Copy link
Contributor Author

manthey commented Mar 20, 2023

Much of this has been added in #279, but leaving this open as there are still needed options.

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

No branches or pull requests

1 participant