Help with Timeline: Is there an easy way to add and position a place marker overlay or point over a timeline bar?

354 views
Skip to first unread message

Phil Agee

unread,
Dec 31, 2015, 3:03:09 PM12/31/15
to Google Visualization API
Howdy,

I have a google.visualization.Timeline (bars using birth and death dates of persons) and would like to add markers on top of bars for events relating to specific bars.

I tried using a combination of the visualization documentation example for a google.visualization.Timeline together with the example of google.visualization.LineChart with placeMarker function.

My references to examples are:


However, after trying to combine these 2 examples, I get the error:

 this.getChartLayoutInterface is not a function

So it seems that the Timeline does not support getChartLayoutInterface.  

I also don't see series or points as options in the Timeline options list.

Is there another way to add markers or points to a timeline bar at this time?

Thanks!


Daniel LaLiberte

unread,
Jan 2, 2016, 11:56:41 AM1/2/16
to Google Visualization API
Phil,

Good guess about how to get the features you want, but unfortunately, the Timeline chart is written in a different framework from the Corecharts.  We do plan to integrate all the charts on the same framework, but that work is still in progress.

So for now, you'll have to get by without the getChartLayoutInterface.  A workaround you might want to try is to overlay a Scatter chart on your Timeline chart, and then position your markers relative to the Scatter chart.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/d0850571-6922-4cf7-bc78-19cc65e28a9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Iris Huang

unread,
Jul 26, 2018, 9:25:36 PM7/26/18
to Google Visualization API
It has been two years. Any progress on this feature? I am also interested in put some no duration task such as milestone on the timeline. If not of the box, any work around? Thanks.

shyam.ag...@gmail.com

unread,
Aug 13, 2020, 10:53:35 PM8/13/20
to Google Visualization API
Hi,

Any update on adding Milestone or any Market in Timeline chart? We have a requirement to display Milestone in bar based on end time.

Thanks,
Shyam

Reply all
Reply to author
Forward
0 new messages