- DefaultFractionHandler.prototype.extractSeries = function(rawData, i, options) {
- // TODO(danvk): pre-allocate series here.
- var series = [];
- var x, y, point, num, den, value;
- var mult = 100.0;
- var logScale = options.get('logscale');
- for ( var j = 0; j < rawData.length; j++) {
- x = rawData[j][0];
- point = rawData[j][i];
- if (logScale && point !== null) {
- // On the log scale, points less than zero do not exist.
- // This will create a gap in the chart.
- if (point[0] <= 0 || point[1] <= 0) {
- point = null;
- }
+/**
+ * @extends Dygraph.DataHandlers.DefaultHandler
+ * @constructor
+ */
+Dygraph.DataHandlers.DefaultFractionHandler = function() {
+};
+
+var DefaultFractionHandler = Dygraph.DataHandlers.DefaultFractionHandler;
+DefaultFractionHandler.prototype = new Dygraph.DataHandlers.DefaultHandler();
+
+DefaultFractionHandler.prototype.extractSeries = function(rawData, i, options) {
+ // TODO(danvk): pre-allocate series here.
+ var series = [];
+ var x, y, point, num, den, value;
+ var mult = 100.0;
+ var logScale = options.get('logscale');
+ for ( var j = 0; j < rawData.length; j++) {
+ x = rawData[j][0];
+ point = rawData[j][i];
+ if (logScale && point !== null) {
+ // On the log scale, points less than zero do not exist.
+ // This will create a gap in the chart.
+ if (point[0] <= 0 || point[1] <= 0) {
+ point = null;