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

Is there a way to set gauge chart gradient angle? #496

Open
ivanabrkic opened this issue Jul 20, 2023 · 1 comment
Open

Is there a way to set gauge chart gradient angle? #496

ivanabrkic opened this issue Jul 20, 2023 · 1 comment

Comments

@ivanabrkic
Copy link

ivanabrkic commented Jul 20, 2023

If we are looking at gauge chart, it's 180 deg (from -90 to 90). I need to implement gradient which is curved from left about -60 deg angle - like this \. Is that possible?

I did a little hack to achieve this with default horizontal gradient:

const elements = document.getElementsByTagName('linearGradient');
for (let element of elements) {
    element.setAttribute('y1', '50%');
    element.setAttribute('y2', '10%');
}

But I was hoping there is a better solution?

Copy link

github-actions bot commented Aug 2, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

1 participant