-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-chart.axis.Gauge'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
+ <style type="text/css">
+ .highlight { display: block; background-color: #ddd; }
+ </style>
+ <script type="text/javascript">
+ function highlight() {
+ document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+ }
+ </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+ <pre class="prettyprint lang-js"><span id='Ext-chart-axis-Gauge'>/**
</span> * @class Ext.chart.axis.Gauge
* @extends Ext.chart.axis.Abstract
*
extend: 'Ext.chart.axis.Abstract',
/* End Definitions */
-
-<span id='Ext-chart.axis.Gauge-cfg-minimum'> /**
-</span> * @cfg {Number} minimum (required) the minimum value of the interval to be displayed in the axis.
+
+<span id='Ext-chart-axis-Gauge-cfg-minimum'> /**
+</span> * @cfg {Number} minimum (required)
+ * The minimum value of the interval to be displayed in the axis.
+ */
+
+<span id='Ext-chart-axis-Gauge-cfg-maximum'> /**
+</span> * @cfg {Number} maximum (required)
+ * The maximum value of the interval to be displayed in the axis.
*/
-<span id='Ext-chart.axis.Gauge-cfg-maximum'> /**
-</span> * @cfg {Number} maximum (required) the maximum value of the interval to be displayed in the axis.
+<span id='Ext-chart-axis-Gauge-cfg-steps'> /**
+</span> * @cfg {Number} steps (required)
+ * The number of steps and tick marks to add to the interval.
*/
-<span id='Ext-chart.axis.Gauge-cfg-steps'> /**
-</span> * @cfg {Number} steps (required) the number of steps and tick marks to add to the interval.
+<span id='Ext-chart-axis-Gauge-cfg-margin'> /**
+</span> * @cfg {Number} [margin=10]
+ * The offset positioning of the tick marks and labels in pixels.
*/
-<span id='Ext-chart.axis.Gauge-cfg-margin'> /**
-</span> * @cfg {Number} margin (optional) the offset positioning of the tick marks and labels in pixels. Default's 10.
+<span id='Ext-chart-axis-Gauge-cfg-title'> /**
+</span> * @cfg {String} title
+ * The title for the Axis.
*/
position: 'gauge',
this.drawTitle();
}
},
-
+
drawTitle: function() {
var me = this,
chart = me.chart,
bbox = chart.chartBBox,
labelSprite = me.titleSprite,
labelBBox;
-
+
if (!labelSprite) {
me.titleSprite = labelSprite = surface.add({
type: 'text',
zIndex: 2
- });
+ });
}
labelSprite.setAttributes(Ext.apply({
text: me.title
}, true);
},
-<span id='Ext-chart.axis.Gauge-method-setTitle'> /**
+<span id='Ext-chart-axis-Gauge-method-setTitle'> /**
</span> * Updates the {@link #title} of this axis.
* @param {String} title
*/
}
this.labelArray = labelArray;
}
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>