Skip to content

Use a linear gradient as line color #419

Open
@Weasy666

Description

@Weasy666

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions