Hi Steve,

What you want is called a 'domain' annotation, which you should insert
immediately after the first column (column 0).  The position of this
annotation line will be determined by the corresponding domain value.  Your
annotation column should be of type string, but you should be able to give
an empty string.  Try a non-empty string first just to make sure you have
everything else right.

The line annotation doesn't include the little triangles on the top and
bottom, however.

On Mon, Feb 22, 2016 at 5:59 AM, Steve Morris <[email protected]> wrote:

> Following a example I found on StackOverflow, I tried adding an extra
> column, with type='timeofday' and role='annotation'*, an extra row with
> the time and an **annotation** style=*'line'*, but that does not work.*
>
>
>
>
>
>
>
>
>
>
>
>
>
> *var numCols=graphData.cols.length;
> graphData.cols[numCols]={id:'timeLine', type: 'timeofday', role:
> 'annotation'};var
> numRows=graphData.rows.length;graphData.rows[numRows]={c:[]};graphData.rows[numRows].c[numCols]=[10,
> 47,
> 0];graphOptions.annotation=[];graphOptions.annotation[numCols]={style:'line'};chart.draw(graphData,
> graphOptions);*
> On Sunday, February 21, 2016 at 6:42:19 PM UTC+2, Steve Morris wrote:
>>
>> How do I add a vertical line marker to a stacked ColumnChart (the red
>> line in the attached bitmap)?
>> The X-axis is continuous and the x-positions of the columns
>> are "timeofday". The marker will indicate the current time.
>>
>>
>> <https://lh3.googleusercontent.com/-2ZodvdRcxZw/VsnnqiR5asI/AAAAAAABO1g/d4iK15QxwCg/s1600/Image5.png>
>>
>>
>> --
> 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/8fe7dd0b-c995-4bd9-be45-55653143211d%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/8fe7dd0b-c995-4bd9-be45-55653143211d%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/CAOtcSJM_spEK3Kb8gJV7e2jPoQawOzBE_cmgc4oyCxhBrnpTqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to