Open oranego opened 3 years ago
No, everything works correctly, it only depends on which label you give to column 1 (BAR_LABELS https://developers.google.com/chart/interactive/docs/gallery/timeline#data-format).
Here is my example using https://jsfiddle.net/microlabig/u1rvy9sn/20/
Moreover, it should be noted that the color for the colors option depends on how the BAR_LABELS array is formed. That is, if the first element of the BAR_LABELS array is, for example, potato
, the third is tomato
, and the colors
array is formed as ['orange', red]
, then all the potato will be colored orange, and the tomato - in red.
Bars on subsequent rows with the same label as a previous bar get that bar's color rather than the color specified in the 'colors' array.
In this example, per the 'colors' array all bars on the second and following rows should be red, but in fact only those bars that have a unique label are red: