git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
src
/
chart
/
axis
/
Gauge.js
diff --git
a/src/chart/axis/Gauge.js
b/src/chart/axis/Gauge.js
index
fc9d2f2
..
9cb28d8
100644
(file)
--- a/
src/chart/axis/Gauge.js
+++ b/
src/chart/axis/Gauge.js
@@
-39,21
+39,30
@@
Ext.define('Ext.chart.axis.Gauge', {
extend: 'Ext.chart.axis.Abstract',
/* End Definitions */
extend: 'Ext.chart.axis.Abstract',
/* End Definitions */
-
+
+ /**
+ * @cfg {Number} minimum (required)
+ * The minimum value of the interval to be displayed in the axis.
+ */
+
/**
/**
- * @cfg {Number} minimum (required) the minimum value of the interval to be displayed in the axis.
+ * @cfg {Number} maximum (required)
+ * The maximum value of the interval to be displayed in the axis.
*/
/**
*/
/**
- * @cfg {Number} maximum (required) the maximum value of the interval to be displayed in the axis.
+ * @cfg {Number} steps (required)
+ * The number of steps and tick marks to add to the interval.
*/
/**
*/
/**
- * @cfg {Number} steps (required) the number of steps and tick marks to add to the interval.
+ * @cfg {Number} [margin=10]
+ * The offset positioning of the tick marks and labels in pixels.
*/
/**
*/
/**
- * @cfg {Number} margin (optional) the offset positioning of the tick marks and labels in pixels. Default's 10.
+ * @cfg {String} title
+ * The title for the Axis.
*/
position: 'gauge',
*/
position: 'gauge',
@@
-116,7
+125,7
@@
Ext.define('Ext.chart.axis.Gauge', {
this.drawTitle();
}
},
this.drawTitle();
}
},
-
+
drawTitle: function() {
var me = this,
chart = me.chart,
drawTitle: function() {
var me = this,
chart = me.chart,
@@
-124,12
+133,12
@@
Ext.define('Ext.chart.axis.Gauge', {
bbox = chart.chartBBox,
labelSprite = me.titleSprite,
labelBBox;
bbox = chart.chartBBox,
labelSprite = me.titleSprite,
labelBBox;
-
+
if (!labelSprite) {
me.titleSprite = labelSprite = surface.add({
type: 'text',
zIndex: 2
if (!labelSprite) {
me.titleSprite = labelSprite = surface.add({
type: 'text',
zIndex: 2
- });
+ });
}
labelSprite.setAttributes(Ext.apply({
text: me.title
}
labelSprite.setAttributes(Ext.apply({
text: me.title