return this.getPixelForValue(value);
}
- var offset = 0;
-
- for (var j = datasetIndex; j < this.data.datasets.length; j++) {
- if (j === datasetIndex && value) {
- offset += value;
- } else {
- offset = offset + value;
- }
- }
-
return this.getPixelForValue(value);
},
closePath: function() {},
fill: function() {},
lineTo: function(x, y) {},
+ measureText: function(text) {
+ // return the number of characters * fixed size
+ return text ? { width: text.length * 10 } : {width: 0};
+ },
moveTo: function(x, y) {},
quadraticCurveTo: function() {},
restore: function() {},
var addMethod = function(name, method) {
scope[methodName] = function() {
scope.record(name, arguments);
- method.apply(scope, arguments);
+ return method.apply(scope, arguments);
};
}