How to use the keen-dataviz.Dataviz function in keen-dataviz

To help you get started, we’ve selected a few keen-dataviz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github keen / keen-js / lib / index.js View on Github external
KeenBase.prototype.draw = function(query, el, attributes){
  var chart = Dataviz()
    .attributes(attributes)
    .el(el)
    .prepare();

  this.run(query, function(err, res){
    if (err) {
      chart.message(err.message);
    }
    else {
      chart.data(res).render();
    }
  });
  return chart;
};

keen-dataviz

Data Visualization SDK for Keen IO

MIT
Latest version published 4 years ago

Package Health Score

48 / 100
Full package analysis

Popular keen-dataviz functions