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

Conic Gradients : hovering over a cone displays the legend #2495

Closed
Stan-Baumer opened this issue Feb 20, 2024 · 1 comment
Closed

Conic Gradients : hovering over a cone displays the legend #2495

Stan-Baumer opened this issue Feb 20, 2024 · 1 comment
Labels
feature request Request a feature or introduce and update to the project.

Comments

@Stan-Baumer
Copy link

Describe the feature in detail (code, mocks, or screenshots encouraged)

I was digging to find a way to display the legend when hovering over a cone instead of reading the legend at the bottom, but I failed to find a solution.

Can you implement this feature ? For example, a way to handle on:hover on cones to show a hover popup.

Thank you for your help!

What type of pull request would this be?

New Feature

Provide relevant links or additional information.

No response

@Stan-Baumer Stan-Baumer added the feature request Request a feature or introduce and update to the project. label Feb 20, 2024
@endigo9740
Copy link
Contributor

endigo9740 commented Feb 20, 2024

Unfortunately not Stan. Conic gradient are exactly what you might expect, a cone shaped gradient - as in from a top-down radial view. It's just a set colors applied to a div. There's no individual elements or layers per "slice". And they are not rendered with Canvas - which would allow for interaction.

If you need something like that, I'd recommend looking at a full fledge charting library. I've had good experience with Chart.js. Though unfortunately colors for canvas-based elements have to be supplied via JS. So you may need to manually define a few of your theme colors this way for this to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a feature or introduce and update to the project.
Projects
None yet
Development

No branches or pull requests

2 participants