Hi, all!
My intention is to draw a bar chart that will show information about a program execution.
The bar height itself will show the execution duration in seconds (vAxis), but I'd like the bar color to show the executions status (eg. red for failed execution, blue for correct execution)
var data = new google.visualization.arrayToDataTable([
["Date", "Status", "Duration (s)"],
["13/02/2017 13:42:58", 0, 29],
["13/02/2017 16:53:07", 1, 41],
["13/02/2017 16:54:36", 0, 26]
]);
Status 0 is correct, 1 is failed execution.
I've been checking the forum but I couldn't find any meaningful info. Is there a way to do what I want? Perhaps an if/else block in the "colors" array from options??
Thanks in advance for your answers! Best regards!