Search code examples
google-cloud-datalab

How to link chart and javascript cell to have the same chart object as reference


Recently started exploring Cloud Datalab.I have implemented GeoCharts and now i wanted to place event handling and extend chart functionality.I couldn't figure out how to link %%charts cell and %%javascript cell to have the same chart reference and perform event handling.Can someone please help me with this.


Solution

  • This isn't possible right now using %%chart. You could potentially create your own extended form of %%chart (source) that includes custom Javascript in the _HTML_TEMPLATE but that is non-trivial.