Oh I see the issue. ChartWrapper doesn't know about getChartLayoutInterface. You have to call this.getChart().getChartLayoutInterface().
On Thu, May 14, 2015 at 1:47 PM Tim Lewis <[email protected]> wrote: > Isn't that essentially what I'm doing on lines 323 to 333 (shown below)? > > function placeMarker(DataTable) { > $('.delay').show(); > //console.log(this); > var cli = this.getChartLayoutInterface(); > var chartArea = cli.getChartAreaBoundingBox(); > document.querySelector('.overlay').style.top = Math.floor(cli. > getYLocation(DataTable.getValue(2, 1))) - 50 + "px"; > document.querySelector('.overlay').style.left = Math.floor(cli. > getXLocation(1)) - 10 + "px"; > document.querySelector('.overlay').style.top = 750; > document.querySelector('.overlay').style.left = 0; > } > google.visualization.events.addListener(cloud_chart_wrapper, 'ready', > placeMarker.bind(cloud_chart_wrapper, cloud_datatable)); > > What should I change with this code to make it work? > > Please take a look at the source I linked to in the OP to see the full > context of the above code. > > Thanks for your help! > > -- > 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 > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- 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 http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
