* @param {Layout} layout The DygraphLayout object for this graph.
* @constructor
*/
-DygraphCanvasRenderer = function(dygraph, element, elementContext, layout) {
+
+"use strict";
+
+var DygraphCanvasRenderer = function(dygraph, element, elementContext, layout) {
this.dygraph_ = dygraph;
this.layout = layout;
* - http://dygraphs.com/tests/annotation-gviz.html
*/
+"use strict";
+
/**
* A wrapper around Dygraph that implements the gviz API.
* @param {Object} container The DOM object the visualization should live in.
* @author Robert Konigsberg (konigsberg@google.com)
*/
+"use strict";
+
/**
* A collection of functions to facilitate build custom interaction models.
* dygraphs.
*/
+"use strict";
+
/**
* Creates a new DygraphLayout object.
*
*
* @constructor
*/
-DygraphLayout = function(dygraph) {
+var DygraphLayout = function(dygraph) {
this.dygraph_ = dygraph;
this.datasets = new Array();
this.annotations = new Array();
* a timeline range selector widget for dygraphs.
*/
+"use strict";
+
/**
* The DygraphRangeSelector class provides a timeline range selector widget.
* @param {Dygraph} dygraph The dygraph object
* @constructor
*/
-DygraphRangeSelector = function(dygraph) {
+var DygraphRangeSelector = function(dygraph) {
this.isIE_ = /MSIE/.test(navigator.userAgent) && !window.opera;
this.isUsingExcanvas_ = dygraph.isUsingExcanvas_;
this.dygraph_ = dygraph;
* middle of the years.
*/
+"use strict";
+
Dygraph.numericTicks = function(a, b, pixels, opts, dygraph, vals) {
var pixels_per_tick = opts('pixelsPerLabel');
var ticks = [];
* search) and generic DOM-manipulation functions.
*/
+"use strict";
+
Dygraph.LOG_SCALE = 10;
Dygraph.LN_TEN = Math.log(Dygraph.LOG_SCALE);
Dygraph.createCanvas = function() {
var canvas = document.createElement("canvas");
- isIE = (/MSIE/.test(navigator.userAgent) && !window.opera);
+ var isIE = (/MSIE/.test(navigator.userAgent) && !window.opera);
if (isIE && (typeof(G_vmlCanvasManager) != 'undefined')) {
canvas = G_vmlCanvasManager.initElement(canvas);
}
*/
+"use strict";
+
/**
* Creates an interactive, zoomable chart.
*
* whether the input data contains error ranges. For a complete list of
* options, see http://dygraphs.com/options.html.
*/
-Dygraph = function(div, data, opts) {
+var Dygraph = function(div, data, opts) {
if (arguments.length > 0) {
if (arguments.length == 4) {
// Old versions of dygraphs took in the series labels as a constructor
}
// Older pages may still use this name.
-DateGraph = Dygraph;
+var DateGraph = Dygraph;