-<!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.series.Pie'>/**
+<!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-series-Pie'>/**
</span> * @class Ext.chart.series.Pie
* @extends Ext.chart.series.Series
*
rad: Math.PI / 180,
-<span id='Ext-chart.series.Pie-cfg-highlightDuration'> /**
+<span id='Ext-chart-series-Pie-cfg-highlightDuration'> /**
</span> * @cfg {Number} highlightDuration
* The duration for the pie slice highlight effect.
*/
highlightDuration: 150,
-<span id='Ext-chart.series.Pie-cfg-angleField'> /**
+<span id='Ext-chart-series-Pie-cfg-angleField'> /**
</span> * @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.
*/
angleField: false,
-<span id='Ext-chart.series.Pie-cfg-lengthField'> /**
+<span id='Ext-chart-series-Pie-cfg-lengthField'> /**
</span> * @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.
*/
lengthField: false,
-<span id='Ext-chart.series.Pie-cfg-donut'> /**
+<span id='Ext-chart-series-Pie-cfg-donut'> /**
</span> * @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
*/
donut: false,
-<span id='Ext-chart.series.Pie-cfg-showInLegend'> /**
+<span id='Ext-chart-series-Pie-cfg-showInLegend'> /**
</span> * @cfg {Boolean} showInLegend
* Whether to add the pie chart elements as legend items. Default's false.
*/
showInLegend: false,
-<span id='Ext-chart.series.Pie-cfg-colorSet'> /**
+<span id='Ext-chart-series-Pie-cfg-colorSet'> /**
</span> * @cfg {Array} colorSet
* An array of color values which will be used, in order, as the pie slice fill colors.
*/
-<span id='Ext-chart.series.Pie-cfg-style'> /**
+<span id='Ext-chart-series-Pie-cfg-style'> /**
</span> * @cfg {Object} style
* An object containing styles for overriding series styles from Theming.
*/
};
},
-<span id='Ext-chart.series.Pie-method-drawSeries'> /**
+<span id='Ext-chart-series-Pie-method-drawSeries'> /**
</span> * Draws the series for the current chart.
*/
drawSeries: function() {
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);
}
}
},
-<span id='Ext-chart.series.Pie-method-highlightItem'> /**
+<span id='Ext-chart-series-Pie-method-highlightItem'> /**
</span> * 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
*/
}
},
-<span id='Ext-chart.series.Pie-method-unHighlightItem'> /**
+<span id='Ext-chart-series-Pie-method-unHighlightItem'> /**
</span> * 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
*/
me.callParent(arguments);
},
-<span id='Ext-chart.series.Pie-method-getLegendColor'> /**
+<span id='Ext-chart-series-Pie-method-getLegendColor'> /**
</span> * 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
*/
}
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>