assertEquals('number', typeof(granularity));
assertEquals('function', typeof(opts));
assertEquals('[Dygraph graph]', dg.toString());
- return 'x' + Util.fomratDate(x);
+ return 'x' + Util.formatDate(x);
},
yAxisLabelFormatter: function(y, granularity, opts, dg) {
assertEquals('number', typeof(y));
if (event.offsetX && event.offsetY) {
return [ event.offsetX, event.offsetY ];
} else {
- var eventElementPos = Dygraph.findPosX(this.mouseEventElement_)
+ var eventElementPos = Dygraph.findPos(this.mouseEventElement_)
var canvasx = Dygraph.pageX(event) - eventElementPos.x;
var canvasy = Dygraph.pageY(event) - eventElementPos.y;
return [canvasx, canvasy];