Commits

Anonymous committed b57c276

added some docs and adjusted build.

Comments (0)

Files changed (2)

       </tar>
   </target>
 
-  <target name="docs" depends="dist, min" description="Create documentation for distribution.">
+  <target name="docs" depends="dist" description="Create documentation for distribution.">
     <echo message="Creating documentation" />
       <!-- don't want to process jquery itself -->
         <move file="${BUILD_DIR}/jquery.js" tofile="${BUILD_DIR}/jquery.js.bak" />

src/jqplot.lineRenderer.js

         // data point and so on.
         this.renderer.bandData = [];
 
-        // namespace: bands
+        // Group: bands
         // Banding around line, e.g error bands or confidence intervals.
         this.renderer.bands = {
             // prop: show
             // color of lines at top and bottom of bands (defaults
             // to line color).
             color: this.color,
-            // prop: showLine
+            // prop: showLines
             // True to show lines at top and bottom of bands.
-            showLine: false,
+            showLines: false,
             // prop: fill
             // True to fill area between bands.
             fill: true,
             this.renderer.bands.show = true;
         }
 
+        // if we are given an interval, and bands aren't explicity set to false in options, turn them on.
+        else if (options.bands && options.bands.show == null && options.bands.interval != null) {
+            this.renderer.bands.show = true;
+        }
+
         // if plot is filled, turn off bands.
         if (this.fill) {
             this.renderer.bands.show = false;
         this._boundingBox = [[],[]];
         
         if (!this.isTrendline && this.fill || this.renderer.bands.show) {
-        
+            // Group: Properties
+            //        
             // prop: highlightMouseOver
             // True to highlight area on a filled plot when moused over.
             // This must be false to enable highlightMouseDown to highlight when clicking on an area on a filled plot.
                     if (this.renderer.bands.show) {
                         var bdat;
                         var bopts = $.extend(true, {}, opts);
-                        if (this.renderer.bands.showLine) {
+                        if (this.renderer.bands.showLines) {
                             bdat = (this.renderer.smooth) ? this.renderer._hiBandSmoothedData : this.renderer._hiBandGridData;
                             this.renderer.shapeRenderer.draw(ctx, bdat, opts);
                             bdat = (this.renderer.smooth) ? this.renderer._lowBandSmoothedData : this.renderer._lowBandGridData;