Color changing based on condition

37 views
Skip to first unread message

Rohan Thomas

unread,
Aug 19, 2024, 9:39:38 AM 8/19/24
to Google Visualization API
annotations : {
stem : {
length : 150 ,
color :
graphData . length > 1
? graphData . map (( d , i ) => {
console . log ( `Index ${ i } Value:` , d [ 3 ]);
return d [ 3 ] !== null && d [ 3 ] !== undefined && d [ 3 ] !== ""
? "#880808"
: "none" ;
})
: [],
},
}, i need color for only the values also i want this line as a vertical line as well the color condition is not working

Reply all
Reply to author
Forward
0 new messages