nivo icon indicating copy to clipboard operation
nivo copied to clipboard

[Line] Dissociate line color and area color

Open LeopoldArkham opened this issue 3 months ago • 0 comments

In a line graph, I can't seem to find a way to dissociate the color of the line from the color of the area, i.e. be able to pass two different colors to a line and its area respectively.

I suppose I could disable areas in Nivo, and recompute each of them( this is a stacked line graph) with their own color as layers, but that wouldn't be worth it in my use case for a cosmetic change.

Is there a built-in way to accomplish this that I missed?

Otherwise, if the maintainers can give me with an API they'd be okay with (and how it would interact with areaOpacity), I would be up for implementing this; looking at the internals it doesn't seem too hard to do.

LeopoldArkham avatar Mar 12 '24 11:03 LeopoldArkham