Commits

Chris Leonello committed 241eb29

Updates for new config option object.

Comments (0)

Files changed (5)

src/jqplot.core.js

      * options - user defined options object.  See the individual classes for available options.
      * 
      * Properties:
+     * config - object to hold configuration information for jqPlot plot object.
      * enablePlugins - True to enable plugins by default.  Plugins must be explicitly disabled.
      *   False to disable plugins by default.  Plugins must be explicitly enabled.
      *   This property sets the "show" property of certain plugins to true or false.
     };
         
     $.jqplot.debug = 1;
-    $.jqplot.enablePlugins = true;
+    $.jqplot.config = {
+        debug:1,
+        enablePlugins:true
+    };
+    
+    $.jqplot.enablePlugins = $.jqplot.config.enablePlugins;
     
     /**
      * 

src/plugins/jqplot.dragable.js

 	    this.plugins.dragable = new $.jqplot.Dragable(options.dragable);
 	    // since this function is called before series options are parsed,
 	    // we can set this here and it will be overridden if needed.
-	    this.isDragable = $.jqplot.enablePlugins;
+	    this.isDragable = $.jqplot.config.enablePlugins;
 	};
 	
 	// called within context of plot

src/plugins/jqplot.highlighter.js

 	    //
 	    //prop: show
 	    // true to show the highlight.
-	    this.show = $.jqplot.enablePlugins;
+	    this.show = $.jqplot.config.enablePlugins;
 	    // prop: markerRenderer
 	    // Renderer used to draw the marker of the highlighted point.
 	    // Renderer will assimilate attributes from the data point being highlighted,

src/plugins/jqplot.pointLabels.js

 	    //
 	    // prop: show
 	    // show the labels or not.
-	    this.show = $.jqplot.enablePlugins;
+	    this.show = $.jqplot.config.enablePlugins;
 	    // prop: location
 	    // compass location where to position the label around the point.
 	    // 'n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw'

src/plugins/jqplot.trendline.js

         
         // prop: show
         // Wether or not to show the trend line.
-        this.show = $.jqplot.enablePlugins;
+        this.show = $.jqplot.config.enablePlugins;
         // prop: color
         // CSS color spec for the trend line.
         // By default this wil be the same color as the primary line.