Skip to content

Add conditional colouring to Line/ResponsiveLine #1706

Answered by wyze
zkldi asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass a function to colors prop to probably achieve what you want: https://codesandbox.io/s/prod-rain-xmx89?file=/src/App.tsx

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zkldi
Comment options

@wyze
Comment options

@zkldi
Comment options

@3nt3
Comment options

Answer selected by plouc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1703 on August 04, 2021 12:47.