X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/chart/axis/Gauge.js diff --git a/src/chart/axis/Gauge.js b/src/chart/axis/Gauge.js index fc9d2f2f..9cb28d8b 100644 --- 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 */ - + + /** + * @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', @@ -116,7 +125,7 @@ Ext.define('Ext.chart.axis.Gauge', { this.drawTitle(); } }, - + 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; - + if (!labelSprite) { me.titleSprite = labelSprite = surface.add({ type: 'text', zIndex: 2 - }); + }); } labelSprite.setAttributes(Ext.apply({ text: me.title