Skip to content

Instantly share code, notes, and snippets.

@andr3san
andr3san / helloWorld.js
Created October 26, 2020 09:53
HelloWorld in Looker
looker.plugins.visualizations.add({
create: function(element, config){
element.innerHTML = "<h1>Hello World!!</h1>";
},
updateAsync: function(data, element, config, queryResponse, details, doneRendering){
var html = "";
for(var row of data) {
var cell = row[queryResponse.fields.dimensions[0].name];
html += LookerCharts.Utils.htmlForCell(cell);
}

Keybase proof

I hereby claim:

  • I am andr3san on github.
  • I am andr3san (https://keybase.io/andr3san) on keybase.
  • I have a public key ASDoI8rEDHSFw9RYF9-NlixjqfDOKPFQEmzXd5akL0Ta5Ao

To claim this, I am signing this object: