X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Label2.html diff --git a/docs/source/Label2.html b/docs/source/Label2.html index b69a3760..4038c81d 100644 --- a/docs/source/Label2.html +++ b/docs/source/Label2.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.chart.Label
*
* Labels is a mixin whose methods are appended onto the Series class. Labels is an interface with methods implemented
@@ -32,45 +49,45 @@ Ext.define('Ext.chart.Label', {
/* End Definitions */
- /**
+ /**
* @cfg {String} display
* Specifies the presence and position of labels for each pie slice. Either "rotate", "middle", "insideStart",
* "insideEnd", "outside", "over", "under", or "none" to prevent label rendering.
* Default value: 'none'.
*/
- /**
+ /**
* @cfg {String} color
* The color of the label text.
* Default value: '#000' (black).
*/
- /**
+ /**
* @cfg {String} field
* The name of the field to be displayed in the label.
* Default value: 'name'.
*/
- /**
+ /**
* @cfg {Number} minMargin
* Specifies the minimum distance from a label to the origin of the visualization.
* This parameter is useful when using PieSeries width variable pie slice lengths.
* Default value: 50.
*/
- /**
+ /**
* @cfg {String} font
* The font used for the labels.
* Defautl value: "11px Helvetica, sans-serif".
*/
- /**
+ /**
* @cfg {String} orientation
* Either "horizontal" or "vertical".
* Dafault value: "horizontal".
*/
- /**
+ /**
* @cfg {Function} renderer
* Optional function for formatting the label into a displayable value.
* Default value: function(v) { return v; }
@@ -117,7 +134,7 @@ Ext.define('Ext.chart.Label', {
store = me.chart.store,
len = store.getCount(),
ratio = items.length / len,
- i, count, j,
+ i, count, index, j,
k, gradientsCount = (gradients || 0) && gradients.length,
colorStopTotal, colorStopIndex, colorStop,
item, label, storeItem,
@@ -130,10 +147,16 @@ Ext.define('Ext.chart.Label', {
}
for (i = 0, count = 0; i < len; i++) {
+ index = 0;
for (j = 0; j < ratio; j++) {
item = items[count];
label = group.getAt(count);
storeItem = store.getAt(i);
+
+ //check the excludes
+ while(this.__excludes && this.__excludes[index]) {
+ index++;
+ }
if (!item && label) {
label.hide(true);
@@ -141,9 +164,9 @@ Ext.define('Ext.chart.Label', {
if (item && field[j]) {
if (!label) {
- label = me.onCreateLabel(storeItem, item, i, display, j, count);
+ label = me.onCreateLabel(storeItem, item, i, display, j, index);
}
- me.onPlaceLabel(label, storeItem, item, i, display, animate, j, count);
+ me.onPlaceLabel(label, storeItem, item, i, display, animate, j, index);
//set contrast
if (config.contrast && item.sprite) {
@@ -179,6 +202,7 @@ Ext.define('Ext.chart.Label', {
}
}
count++;
+ index++;
}
}
me.hideLabels(count);
@@ -194,4 +218,6 @@ Ext.define('Ext.chart.Label', {
}
}
}
-});
\ No newline at end of file
+});
+
+