Yes, the legend of the annotated time line shows the previously hovered datum even after you move away from the datum/date, so if you hover over a date in which only one of the series have value, you may see a mix of values from two dates.
Thanks for reporting. On Fri, Jun 17, 2011 at 4:41 PM, Erik van de Burgwal < [email protected]> wrote: > Hi, > I am strugling with this again. I had a lok at your suggestion > regarding the DataView, but I think the problem is more specific and > not solved with the dataview: > Imagine, I draw the number of sold Pencils and the number of sold Pens > (from the example below). For June 7th I do not know the number of > sold pens -for some reason-. When I draw the following graph and hover > my mouse on the graph around June 7th, you will notice that the legend > will not update correct. Is there a workaround for this? > Thanx, > Erik > > function drawVisualization() { > var data = new google.visualization.DataTable(); > data.addColumn('date', 'Date'); > data.addColumn('number', 'Sold Pencils'); > data.addColumn('number', 'Sold Pens'); > data.addRows([ > [new Date(2011,5,5), 7, 12], > [new Date(2011,5,6), 9, 10], > [new Date(2011,5,7), 6, undefined], > [new Date(2011,5,8), 7, 8]]); > var annotatedtimeline = new google.visualization.AnnotatedTimeLine( > document.getElementById('visualization')); > annotatedtimeline.draw(data, {'displayAnnotations': true}); > } > > > > > On May 25, 11:16 am, ChartALot <[email protected]> wrote: > > Yes, it looks like we could ignore the last column in this case. > > > > BTW: why do you need that column? Are you familiar with our > > Views< > http://code.google.com/apis/chart/interactive/docs/reference.html#Dat...>? > > You can use them to strip away columns (and a lot more) > > > > On Mon, May 23, 2011 at 2:53 PM, Erik van de Burgwal < > > > > > > > > > > > > > > > > [email protected]> wrote: > > > Hi, > > > I found an issue when working with the annotatedtimeline-chart and I'm > > > not sure whether this is a bug or some kind of feature, perhaps you > > > can help me out? > > > > > When I have a datatable with a number of columns and the last column > > > has no data for any row, the x-axis of the graph will get screwed-up > > > (no ticks anymore). > > > > > Reproducable by pasting the following code in the playground > > > > > function drawVisualization() { > > > var data = new google.visualization.DataTable(); > > > data.addColumn('date', 'Date'); > > > data.addColumn('number', 'Sold Pencils'); > > > data.addColumn('number', 'Sold Pens'); > > > data.addColumn('number', 'Sold Things'); > > > > > data.addRows([ > > > [new Date(2011,5,5), 7, 12, undefined], > > > [new Date(2011,5,7), 9, 10, undefined], > > > [new Date(2011,5,15), 6, undefined, undefined], > > > [new Date(2011,5,28), 7, 8, undefined]]); > > > > > var annotatedtimeline = new google.visualization.AnnotatedTimeLine( > > > document.getElementById('visualization')); > > > annotatedtimeline.draw(data, {'displayAnnotations': true}); > > > > > } > > > > >http://code.google.com/apis/ajax/playground/?type=visualization#annot.. > .<http://www.google.com/url?sa=D&q=http://code.google.com/apis/ajax/pla.. > .> > > > > > Best regards, > > > Erik > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google Visualization API" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/google-visualization-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
