How to use the dygraphs.call function in dygraphs

To help you get started, we’ve selected a few dygraphs 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 numenta / numenta-apps / unicorn / app / browser / lib / Dygraphs / CustomDygraph.js View on Github external
function CustomDygraph(element, data, options, yAxisRangeCalculate) {
  // This code uses prototype syntax rather than class syntax because it needs
  // to set `this.yAxisRangeCalculate_` before calling the Dygraph constructor,
  // which isn't possible with class syntax.
  this.yAxisRangeCalculate_ = yAxisRangeCalculate;
  Dygraph.call(this, element, data, options);
}