Skip to content

Conditional color value #321

Answered by citoki
greg80303 asked this question in Q&A
Discussion options

You must be logged in to vote

@greg80303 try to write the rgba values in single quotes

    line:
      color: rgba(20,255,0,1)
    fill: tozeroy
    fillcolor: >
        $ex ys === "Idle" ?
          'rgba(20,200,0,0.06)' :
          'rgba(20,255,0,0.1)'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by greg80303
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