Skip to content

Different color stroke on same line graph #3553

Closed Answered by ckifer
jbuoncri1 asked this question in Q&A
Discussion options

You must be logged in to vote

Even more in line with what you want https://codesandbox.io/s/recharts-basic-line-chart-with-different-colors-dynamic-gradients-forked-myzfsr?file=/index.js

Change BLUE_STOP_IDX to change the index where blue stops and red starts. You can probably do with multiple colors as well, you'd just need to figure out the linear gradients

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ckifer
Comment options

Answer selected by jbuoncri1
@jbuoncri1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants