Colors option for AnnotationChart must be an array of strings. It appears your colors value is just a string, and perhaps that worked for AnnotatedTimeline, but it wasn't documented that way. Try changing to an array like this: colors: ['red', 'blue']
On Wed, Aug 2, 2017 at 10:48 AM, 'Craig' via Google Visualization API < [email protected]> wrote: > I apologize for missing that. I am accessing the timeline now but the > colors parameter generates a 'Unable to get property 'color' of undefined > or null reference'. I get this with double quotes and 1 front dot or > single quotes and 4 or 1 front dots. The double quotes case with 4 front > dots generates a perl interpreter syntax error. > > chart.draw(data, {displayAnnotations: true, > displayZoomButtons: false, allValuesSuffix: '$suf', fill: 40, thickness: 1, > colors:'....@colors <'....@colors>.', displayRangeSelector: > false}); > } > </script> > </head> > <body> > > <div id='chart_div' style='width: 800px; height: > 380px;'></div> > > </body> > </html>"; > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to google-visualization-api@ > googlegroups.com. > Visit this group at https://groups.google.com/ > group/google-visualization-api. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-visualization-api/438ef1c8-9f5d-4120-a59f- > 2cb41224fb83%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/438ef1c8-9f5d-4120-a59f-2cb41224fb83%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJP3TER9oDUB6mgpWQiwhbLvHqrqMOqQA7NE6Dn-f9zpEQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
