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

Use a linear gradient as line color #419

Open
Weasy666 opened this issue Dec 12, 2023 · 0 comments
Open

Use a linear gradient as line color #419

Weasy666 opened this issue Dec 12, 2023 · 0 comments

Comments

@Weasy666
Copy link

Weasy666 commented Dec 12, 2023

I would like to be able to use a linear gradient as color for a line in the line graph, so that the line looks like this
image

I have looked through the docs and Github issues, but it looks like one can only set a color for a line and set lineOptions.heatline = true to get a fading effect on the line.

I tried to somehow hack the chart and replace the stops of the linearGradient in the svg's defs, but that just breaks the chart and nothing is rendered anymore, or it seems to be just getting replaced again from the chart rendering code.

Is there a way to do this, which i have missed?

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