X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Axis.html diff --git a/docs/source/Axis.html b/docs/source/Axis.html index db718c4d..1a6bfdb7 100644 --- a/docs/source/Axis.html +++ b/docs/source/Axis.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.chart.axis.Axis
* @extends Ext.chart.axis.Abstract
*
@@ -53,23 +70,26 @@ Ext.define('Ext.chart.axis.Axis', {
/* End Definitions */
- /**
+ /**
* @cfg {Number} majorTickSteps
* If `minimum` and `maximum` are specified it forces the number of major ticks to the specified value.
*/
- /**
+ /**
* @cfg {Number} minorTickSteps
* The number of small ticks between two major ticks. Default is zero.
*/
-
- /**
+
+ //@private force min/max values from store
+ forceMinMax: false,
+
+ /**
* @cfg {Number} dashSize
* The size of the dash marker. Default's 3.
*/
dashSize: 3,
- /**
+ /**
* @cfg {String} position
* Where to set the axis. Available options are `left`, `bottom`, `right`, `top`. Default's `bottom`.
*/
@@ -78,13 +98,13 @@ Ext.define('Ext.chart.axis.Axis', {
// @private
skipFirst: false,
- /**
+ /**
* @cfg {Number} length
* Offset axis position. Default's 0.
*/
length: 0,
- /**
+ /**
* @cfg {Number} width
* Offset axis width. Default's 0.
*/
@@ -160,6 +180,14 @@ Ext.define('Ext.chart.axis.Axis', {
out = Ext.draw.Draw.snapEnds(min, max, me.majorTickSteps !== false ? (me.majorTickSteps +1) : me.steps);
outfrom = out.from;
outto = out.to;
+ if (me.forceMinMax) {
+ if (!isNaN(max)) {
+ out.to = max;
+ }
+ if (!isNaN(min)) {
+ out.from = min;
+ }
+ }
if (!isNaN(me.maximum)) {
//TODO(nico) users are responsible for their own minimum/maximum values set.
//Clipping should be added to remove lines in the chart which are below the axis.
@@ -185,7 +213,7 @@ Ext.define('Ext.chart.axis.Axis', {
return out;
},
- /**
+ /**
* Renders the axis into the screen and updates it's position.
*/
drawAxis: function (init) {
@@ -319,7 +347,7 @@ Ext.define('Ext.chart.axis.Axis', {
me.drawLabel();
},
- /**
+ /**
* Renders an horizontal and/or vertical grid into the Surface.
*/
drawGrid: function() {
@@ -633,7 +661,7 @@ Ext.define('Ext.chart.axis.Axis', {
return maxWidth;
},
- /**
+ /**
* Renders the labels in the axes.
*/
drawLabel: function() {
@@ -694,7 +722,7 @@ Ext.define('Ext.chart.axis.Axis', {
return true;
},
- /**
+ /**
* Updates the {@link #title} of this axis.
* @param {String} title
*/
@@ -757,4 +785,6 @@ Ext.define('Ext.chart.axis.Axis', {
}
}, true);
}
-});
\ No newline at end of file
+});
+
+