X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/Gauge2.html diff --git a/docs/source/Gauge2.html b/docs/source/Gauge2.html index a632fc5c..022b18dd 100644 --- a/docs/source/Gauge2.html +++ b/docs/source/Gauge2.html @@ -1,9 +1,26 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.chart.series.Gauge
* @extends Ext.chart.series.Series
*
* Creates a Gauge Chart. Gauge Charts are used to show progress in a certain variable. There are two ways of using the Gauge chart.
- * One is setting a store element into the Gauge and selecting the field to be used from that store. Another one is instanciating the
+ * One is setting a store element into the Gauge and selecting the field to be used from that store. Another one is instantiating the
* visualization and using the `setValue` method to adjust the value you want.
*
* A chart/series configuration for the Gauge visualization could look like this:
@@ -46,39 +63,38 @@ Ext.define('Ext.chart.series.Gauge', {
rad: Math.PI / 180,
- /**
+ /**
* @cfg {Number} highlightDuration
* The duration for the pie slice highlight effect.
*/
highlightDuration: 150,
- /**
- * @cfg {String} angleField
+ /**
+ * @cfg {String} angleField (required)
* The store record field name to be used for the pie angles.
* The values bound to this field name must be positive real numbers.
- * This parameter is required.
*/
angleField: false,
- /**
+ /**
* @cfg {Boolean} needle
* Use the Gauge Series as an area series or add a needle to it. Default's false.
*/
needle: false,
- /**
- * @cfg {Boolean|Number} donut
+ /**
+ * @cfg {Boolean/Number} donut
* Use the entire disk or just a fraction of it for the gauge. Default's false.
*/
donut: false,
- /**
+ /**
* @cfg {Boolean} showInLegend
* Whether to add the pie chart elements as legend items. Default's false.
*/
showInLegend: false,
- /**
+ /**
* @cfg {Object} style
* An object containing styles for overriding series styles from Theming.
*/
@@ -134,7 +150,7 @@ Ext.define('Ext.chart.series.Gauge', {
//@private updates some onbefore render parameters.
initialize: function() {
var me = this,
- store = me.chart.substore || me.chart.store;
+ store = me.chart.getChartStore();
//Add yFields to be used in Legend.js
me.yField = [];
if (me.label.field) {
@@ -229,13 +245,13 @@ Ext.define('Ext.chart.series.Gauge', {
};
},
- /**
+ /**
* Draws the series for the current chart.
*/
drawSeries: function() {
var me = this,
chart = me.chart,
- store = chart.substore || chart.store,
+ store = chart.getChartStore(),
group = me.group,
animate = me.chart.animate,
axis = me.chart.axes.get(0),
@@ -407,7 +423,7 @@ Ext.define('Ext.chart.series.Gauge', {
delete me.value;
},
- /**
+ /**
* Sets the Gauge chart to the current specified value.
*/
setValue: function (value) {
@@ -442,7 +458,7 @@ Ext.define('Ext.chart.series.Gauge', {
}
},
- /**
+ /**
* Returns the color of the series (to be displayed as color for the series legend item).
* @param item {Object} Info about the item; same format as returned by #getItemForPoint
*/
@@ -452,4 +468,6 @@ Ext.define('Ext.chart.series.Gauge', {
}
});
-
\ No newline at end of file
+
+
+