Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}