Commits

Chris Leonello  committed 607e0e4

Added defaults for location of jqplot sources.
Added check for axis renderer resetDataBounds function instead of calling Axis resetDataBounds method.

  • Participants
  • Parent commits 0cdc278

Comments (0)

Files changed (1)

File src/jqplot.core.js

         defaultNegativeColors: [ "#498991", "#C08840", "#9F9274", "#546D61", "#646C4A", "#6F6621", "#6E3F5F", "#4F64B0", "#A89050", "#C45923", "#187399", "#945381", "#959E5C", "#C7AF7B", "#478396", "#907294"],
         dashLength: 4,
         gapLength: 4,
-        dotGapLength: 2.5
+        dotGapLength: 2.5,
+        srcLocation: 'jqplot/src/',
+        pluginLocation: 'jqplot/src/plugins/'
     };
     
     
     
     Axis.prototype.resetScale = function(opts) {
         $.extend(true, this, {min: null, max: null, numberTicks: null, tickInterval: null, _ticks: [], ticks: []}, opts);
-        this.resetDataBounds();
+        if (this.renderer.resetDataBounds !== undefined) {
+            this.renderer.resetDataBounds();
+        }
+        else {
+            this.resetDataBounds();
+        }
     };
     
     Axis.prototype.resetDataBounds = function() {