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 · 0 comments
Open

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

ivanabrkic opened this issue Jul 20, 2023 · 0 comments

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?

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