Annotaded Timeline to Annotation Chart

31 views
Skip to first unread message

Denis Caggiano

unread,
Jul 24, 2015, 10:15:50 AM7/24/15
to Google Visualization API
I want to migrate from Annotated Timeline to Annotation for mobile support.
Im using the same datatable but there is something wrong with the lines and the chart is built with some "gaps".

I need to present 2 or more lines with independent dates.
This Annotation Chart support it?

Tks.

Daniel LaLiberte

unread,
Jul 24, 2015, 1:11:29 PM7/24/15
to Google Visualization API
Denis,


The AnnotationChart sorts the data by date first, which is why your overlapping data ends up with some gaps.

But there is an undocumented 'chart' option for the AnnotationChart, which you can use to provide any of the same options as you would for an AreaChart, including the 'interpolateNulls' option.  So try adding this to your AnnotationChart:

var options = {
   ...
  chart: { 
    interpolateNulls: true
  }
 }

Similarly, there is a 'range' option to target the ChartRangeFilter, and for that, you can add ui.chartOptions.  Here is your chart updated with these changes: https://jsfiddle.net/dlaliberte/50tgj4x8/1/

--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Denis Caggiano

unread,
Jul 24, 2015, 3:36:55 PM7/24/15
to google-visua...@googlegroups.com
Tks.
Its working but the mouse over does not select 2 point or 3. I can only see the detail info one at once.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/X4dnhuYsnXM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
Denis Martins Caggiano

Daniel LaLiberte

unread,
Jul 24, 2015, 8:51:04 PM7/24/15
to Google Visualization API
Denis,

Only showing details of one data point at a time as you hover over it is working as intended.  I'm not sure what you had in mind.
Reply all
Reply to author
Forward
0 new messages