-<!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.Label'>/**
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <title>The source code</title>
+ <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../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-Label'>/**
</span> * @class Ext.chart.Label
*
* Labels is a mixin whose methods are appended onto the Series class. Labels is an interface with methods implemented
/* End Definitions */
-<span id='Ext-chart.Label-cfg-display'> /**
+<span id='Ext-chart-Label-cfg-display'> /**
</span> * @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'.
*/
-<span id='Ext-chart.Label-cfg-color'> /**
+<span id='Ext-chart-Label-cfg-color'> /**
</span> * @cfg {String} color
* The color of the label text.
* Default value: '#000' (black).
*/
-<span id='Ext-chart.Label-cfg-field'> /**
+<span id='Ext-chart-Label-cfg-field'> /**
</span> * @cfg {String} field
* The name of the field to be displayed in the label.
* Default value: 'name'.
*/
-<span id='Ext-chart.Label-cfg-minMargin'> /**
+<span id='Ext-chart-Label-cfg-minMargin'> /**
</span> * @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.
*/
-<span id='Ext-chart.Label-cfg-font'> /**
+<span id='Ext-chart-Label-cfg-font'> /**
</span> * @cfg {String} font
* The font used for the labels.
* Defautl value: "11px Helvetica, sans-serif".
*/
-<span id='Ext-chart.Label-cfg-orientation'> /**
+<span id='Ext-chart-Label-cfg-orientation'> /**
</span> * @cfg {String} orientation
* Either "horizontal" or "vertical".
* Dafault value: "horizontal".
*/
-<span id='Ext-chart.Label-cfg-renderer'> /**
+<span id='Ext-chart-Label-cfg-renderer'> /**
</span> * @cfg {Function} renderer
* Optional function for formatting the label into a displayable value.
* Default value: function(v) { return v; }
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,
}
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);
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) {
}
}
count++;
+ index++;
}
}
me.hideLabels(count);
}
}
}
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>