X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/Pie.html diff --git a/docs/source/Pie.html b/docs/source/Pie.html index c72ecca7..4336e668 100644 --- a/docs/source/Pie.html +++ b/docs/source/Pie.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.chart.series.Pie
* @extends Ext.chart.series.Series
*
@@ -83,13 +100,13 @@ Ext.define('Ext.chart.series.Pie', {
rad: Math.PI / 180,
- /**
+ /**
* @cfg {Number} highlightDuration
* The duration for the pie slice highlight effect.
*/
highlightDuration: 150,
- /**
+ /**
* @cfg {String} angleField
* The store record field name to be used for the pie angles.
* The values bound to this field name must be positive real numbers.
@@ -97,7 +114,7 @@ Ext.define('Ext.chart.series.Pie', {
*/
angleField: false,
- /**
+ /**
* @cfg {String} lengthField
* The store record field name to be used for the pie slice lengths.
* The values bound to this field name must be positive real numbers.
@@ -105,7 +122,7 @@ Ext.define('Ext.chart.series.Pie', {
*/
lengthField: false,
- /**
+ /**
* @cfg {Boolean|Number} donut
* Whether to set the pie chart as donut chart.
* Default's false. Can be set to a particular percentage to set the radius
@@ -113,18 +130,18 @@ Ext.define('Ext.chart.series.Pie', {
*/
donut: false,
- /**
+ /**
* @cfg {Boolean} showInLegend
* Whether to add the pie chart elements as legend items. Default's false.
*/
showInLegend: false,
- /**
+ /**
* @cfg {Array} colorSet
* An array of color values which will be used, in order, as the pie slice fill colors.
*/
- /**
+ /**
* @cfg {Object} style
* An object containing styles for overriding series styles from Theming.
*/
@@ -281,7 +298,7 @@ Ext.define('Ext.chart.series.Pie', {
};
},
- /**
+ /**
* Draws the series for the current chart.
*/
drawSeries: function() {
@@ -457,25 +474,22 @@ Ext.define('Ext.chart.series.Pie', {
shadowAttr = shadowAttributes[shindex];
shadow = shadowGroups[shindex].getAt(i);
if (!shadow) {
- shadow = chart.surface.add(Ext.apply({},
- {
+ shadow = chart.surface.add(Ext.apply({}, {
type: 'path',
group: shadowGroups[shindex],
strokeLinejoin: "round"
- },
- rendererAttributes, shadowAttr));
+ }, rendererAttributes, shadowAttr));
}
if (animate) {
- rendererAttributes = me.renderer(shadow, store.getAt(i), Ext.apply({},
- rendererAttributes, shadowAttr), i, store);
+ shadowAttr = me.renderer(shadow, store.getAt(i), Ext.apply({}, rendererAttributes, shadowAttr), i, store);
me.onAnimate(shadow, {
- to: rendererAttributes
+ to: shadowAttr
});
} else {
- rendererAttributes = me.renderer(shadow, store.getAt(i), Ext.apply(shadowAttr, {
+ shadowAttr = me.renderer(shadow, store.getAt(i), Ext.apply(shadowAttr, {
hidden: false
}), i, store);
- shadow.setAttributes(rendererAttributes, true);
+ shadow.setAttributes(shadowAttr, true);
}
shadows.push(shadow);
}
@@ -819,7 +833,7 @@ Ext.define('Ext.chart.series.Pie', {
}
},
- /**
+ /**
* Highlight the specified item. If no item is provided the whole series will be highlighted.
* @param item {Object} Info about the item; same format as returned by #getItemForPoint
*/
@@ -920,7 +934,7 @@ Ext.define('Ext.chart.series.Pie', {
}
},
- /**
+ /**
* un-highlights the specified item. If no item is provided it will un-highlight the entire series.
* @param item {Object} Info about the item; same format as returned by #getItemForPoint
*/
@@ -1009,14 +1023,16 @@ Ext.define('Ext.chart.series.Pie', {
me.callParent(arguments);
},
- /**
+ /**
* 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
*/
getLegendColor: function(index) {
var me = this;
- return me.colorArrayStyle[index % me.colorArrayStyle.length];
+ return (me.colorSet && me.colorSet[index % me.colorSet.length]) || me.colorArrayStyle[index % me.colorArrayStyle.length];
}
});
-
\ No newline at end of file
+
+
+