Annotation Color Does not Match bar Color (it is automatically darker)

12 views
Skip to first unread message

Siddharth Dalal

unread,
Mar 9, 2017, 10:20:41 AM3/9/17
to Google Visualization API
In a bar chart, I'm adding bars of different colors based on the values

chartDataTable.addRow([keypercentChange'color:' + (percentChange < 0 ? downColor : upColor), percentChange]);

And The bars are drawn the correct colors. However the annotations are not:

annotations: {
                            alwaysOutside: true,
                            textStyle: {
                                fontName: 'Roboto',
                                fontSize: 13,
                                bold: true,
                                italic: false
                            }
                        }

The bar colors are:

#FF3232 and #28BF00

Instead of the annotations having the same colors, they get:

#b32323 and #1c8600

If I turn highContrast to false, the annotations turn into some kind of blue.

Is there some way to have the annotations be the same color as the bar?

Thanks!
Reply all
Reply to author
Forward
0 new messages