You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1015 lines
37 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-chart-Chart-method-constructor'><span id='Ext-chart-Chart'>/**
  19. </span></span> * @class Ext.chart.Chart
  20. * @extends Ext.FlashComponent
  21. * The Ext.chart package provides the capability to visualize data with flash based charting.
  22. * Each chart binds directly to an Ext.data.Store enabling automatic updates of the chart.
  23. * To change the look and feel of a chart, see the {@link #chartStyle} and {@link #extraStyle} config options.
  24. * @constructor
  25. * @xtype chart
  26. */
  27. Ext.chart.Chart = Ext.extend(Ext.FlashComponent, {
  28. <span id='Ext-chart-Chart-property-refreshBuffer'> refreshBuffer: 100,
  29. </span>
  30. <span id='Ext-chart-Chart-cfg-backgroundColor'> /**
  31. </span> * @cfg {String} backgroundColor
  32. * @hide
  33. */
  34. <span id='Ext-chart-Chart-cfg-chartStyle'> /**
  35. </span> * @cfg {Object} chartStyle
  36. * Sets styles for this chart. This contains default styling, so modifying this property will &lt;b&gt;override&lt;/b&gt;
  37. * the built in styles of the chart. Use {@link #extraStyle} to add customizations to the default styling.
  38. */
  39. chartStyle: {
  40. padding: 10,
  41. animationEnabled: true,
  42. font: {
  43. name: 'Tahoma',
  44. color: 0x444444,
  45. size: 11
  46. },
  47. dataTip: {
  48. padding: 5,
  49. border: {
  50. color: 0x99bbe8,
  51. size:1
  52. },
  53. background: {
  54. color: 0xDAE7F6,
  55. alpha: .9
  56. },
  57. font: {
  58. name: 'Tahoma',
  59. color: 0x15428B,
  60. size: 10,
  61. bold: true
  62. }
  63. }
  64. },
  65. <span id='Ext-chart-Chart-cfg-url'> /**
  66. </span> * @cfg {String} url
  67. * The url to load the chart from. This defaults to Ext.chart.Chart.CHART_URL, which should
  68. * be modified to point to the local charts resource.
  69. */
  70. <span id='Ext-chart-Chart-cfg-extraStyle'> /**
  71. </span> * @cfg {Object} extraStyle
  72. * Contains extra styles that will be added or overwritten to the default chartStyle. Defaults to &lt;tt&gt;null&lt;/tt&gt;.
  73. * For a detailed list of the options available, visit the YUI Charts site
  74. * at &lt;a href=&quot;http://developer.yahoo.com/yui/charts/#basicstyles&quot;&gt;http://developer.yahoo.com/yui/charts/#basicstyles&lt;/a&gt;&lt;br/&gt;
  75. * Some of the options availabe:&lt;br /&gt;
  76. * &lt;ul style=&quot;padding:5px;padding-left:16px;list-style-type:inherit;&quot;&gt;
  77. * &lt;li&gt;&lt;b&gt;padding&lt;/b&gt; - The space around the edge of the chart's contents. Padding does not increase the size of the chart.&lt;/li&gt;
  78. * &lt;li&gt;&lt;b&gt;animationEnabled&lt;/b&gt; - A Boolean value that specifies whether marker animations are enabled or not. Enabled by default.&lt;/li&gt;
  79. * &lt;li&gt;&lt;b&gt;font&lt;/b&gt; - An Object defining the font style to be used in the chart. Defaults to &lt;tt&gt;{ name: 'Tahoma', color: 0x444444, size: 11 }&lt;/tt&gt;&lt;br/&gt;
  80. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  81. * &lt;li&gt;&lt;b&gt;name&lt;/b&gt; - font name&lt;/li&gt;
  82. * &lt;li&gt;&lt;b&gt;color&lt;/b&gt; - font color (hex code, ie: &quot;#ff0000&quot;, &quot;ff0000&quot; or 0xff0000)&lt;/li&gt;
  83. * &lt;li&gt;&lt;b&gt;size&lt;/b&gt; - font size in points (numeric portion only, ie: 11)&lt;/li&gt;
  84. * &lt;li&gt;&lt;b&gt;bold&lt;/b&gt; - boolean&lt;/li&gt;
  85. * &lt;li&gt;&lt;b&gt;italic&lt;/b&gt; - boolean&lt;/li&gt;
  86. * &lt;li&gt;&lt;b&gt;underline&lt;/b&gt; - boolean&lt;/li&gt;
  87. * &lt;/ul&gt;
  88. * &lt;/li&gt;
  89. * &lt;li&gt;&lt;b&gt;border&lt;/b&gt; - An object defining the border style around the chart. The chart itself will decrease in dimensions to accomodate the border.&lt;br/&gt;
  90. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  91. * &lt;li&gt;&lt;b&gt;color&lt;/b&gt; - border color (hex code, ie: &quot;#ff0000&quot;, &quot;ff0000&quot; or 0xff0000)&lt;/li&gt;
  92. * &lt;li&gt;&lt;b&gt;size&lt;/b&gt; - border size in pixels (numeric portion only, ie: 1)&lt;/li&gt;
  93. * &lt;/ul&gt;
  94. * &lt;/li&gt;
  95. * &lt;li&gt;&lt;b&gt;background&lt;/b&gt; - An object defining the background style of the chart.&lt;br/&gt;
  96. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  97. * &lt;li&gt;&lt;b&gt;color&lt;/b&gt; - border color (hex code, ie: &quot;#ff0000&quot;, &quot;ff0000&quot; or 0xff0000)&lt;/li&gt;
  98. * &lt;li&gt;&lt;b&gt;image&lt;/b&gt; - an image URL. May be relative to the current document or absolute.&lt;/li&gt;
  99. * &lt;/ul&gt;
  100. * &lt;/li&gt;
  101. * &lt;li&gt;&lt;b&gt;legend&lt;/b&gt; - An object defining the legend style&lt;br/&gt;
  102. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  103. * &lt;li&gt;&lt;b&gt;display&lt;/b&gt; - location of the legend. Possible values are &quot;none&quot;, &quot;left&quot;, &quot;right&quot;, &quot;top&quot;, and &quot;bottom&quot;.&lt;/li&gt;
  104. * &lt;li&gt;&lt;b&gt;spacing&lt;/b&gt; - an image URL. May be relative to the current document or absolute.&lt;/li&gt;
  105. * &lt;li&gt;&lt;b&gt;padding, border, background, font&lt;/b&gt; - same options as described above.&lt;/li&gt;
  106. * &lt;/ul&gt;&lt;/li&gt;
  107. * &lt;li&gt;&lt;b&gt;dataTip&lt;/b&gt; - An object defining the style of the data tip (tooltip).&lt;br/&gt;
  108. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  109. * &lt;li&gt;&lt;b&gt;padding, border, background, font&lt;/b&gt; - same options as described above.&lt;/li&gt;
  110. * &lt;/ul&gt;&lt;/li&gt;
  111. * &lt;li&gt;&lt;b&gt;xAxis and yAxis&lt;/b&gt; - An object defining the style of the style of either axis.&lt;br/&gt;
  112. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  113. * &lt;li&gt;&lt;b&gt;color&lt;/b&gt; - same option as described above.&lt;/li&gt;
  114. * &lt;li&gt;&lt;b&gt;size&lt;/b&gt; - same option as described above.&lt;/li&gt;
  115. * &lt;li&gt;&lt;b&gt;showLabels&lt;/b&gt; - boolean&lt;/li&gt;
  116. * &lt;li&gt;&lt;b&gt;labelRotation&lt;/b&gt; - a value in degrees from -90 through 90. Default is zero.&lt;/li&gt;
  117. * &lt;/ul&gt;&lt;/li&gt;
  118. * &lt;li&gt;&lt;b&gt;majorGridLines and minorGridLines&lt;/b&gt; - An object defining the style of the style of the grid lines.&lt;br/&gt;
  119. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  120. * &lt;li&gt;&lt;b&gt;color, size&lt;/b&gt; - same options as described above.&lt;/li&gt;
  121. * &lt;/ul&gt;&lt;/li&gt;&lt;/li&gt;
  122. * &lt;li&gt;&lt;b&gt;zeroGridLine&lt;/b&gt; - An object defining the style of the style of the zero grid line.&lt;br/&gt;
  123. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  124. * &lt;li&gt;&lt;b&gt;color, size&lt;/b&gt; - same options as described above.&lt;/li&gt;
  125. * &lt;/ul&gt;&lt;/li&gt;&lt;/li&gt;
  126. * &lt;li&gt;&lt;b&gt;majorTicks and minorTicks&lt;/b&gt; - An object defining the style of the style of ticks in the chart.&lt;br/&gt;
  127. * &lt;ul style=&quot;padding:5px;padding-left:26px;list-style-type:circle;&quot;&gt;
  128. * &lt;li&gt;&lt;b&gt;color, size&lt;/b&gt; - same options as described above.&lt;/li&gt;
  129. * &lt;li&gt;&lt;b&gt;length&lt;/b&gt; - the length of each tick in pixels extending from the axis.&lt;/li&gt;
  130. * &lt;li&gt;&lt;b&gt;display&lt;/b&gt; - how the ticks are drawn. Possible values are &quot;none&quot;, &quot;inside&quot;, &quot;outside&quot;, and &quot;cross&quot;.&lt;/li&gt;
  131. * &lt;/ul&gt;&lt;/li&gt;&lt;/li&gt;
  132. * &lt;/ul&gt;
  133. */
  134. extraStyle: null,
  135. <span id='Ext-chart-Chart-cfg-seriesStyles'> /**
  136. </span> * @cfg {Object} seriesStyles
  137. * Contains styles to apply to the series after a refresh. Defaults to &lt;tt&gt;null&lt;/tt&gt;.
  138. */
  139. seriesStyles: null,
  140. <span id='Ext-chart-Chart-cfg-disableCaching'> /**
  141. </span> * @cfg {Boolean} disableCaching
  142. * True to add a &quot;cache buster&quot; to the end of the chart url. Defaults to true for Opera and IE.
  143. */
  144. disableCaching: Ext.isIE || Ext.isOpera,
  145. <span id='Ext-chart-Chart-property-disableCacheParam'> disableCacheParam: '_dc',
  146. </span>
  147. <span id='Ext-chart-Chart-method-initComponent'> initComponent : function(){
  148. </span> Ext.chart.Chart.superclass.initComponent.call(this);
  149. if(!this.url){
  150. this.url = Ext.chart.Chart.CHART_URL;
  151. }
  152. if(this.disableCaching){
  153. this.url = Ext.urlAppend(this.url, String.format('{0}={1}', this.disableCacheParam, new Date().getTime()));
  154. }
  155. this.addEvents(
  156. 'itemmouseover',
  157. 'itemmouseout',
  158. 'itemclick',
  159. 'itemdoubleclick',
  160. 'itemdragstart',
  161. 'itemdrag',
  162. 'itemdragend',
  163. <span id='Ext-chart-Chart-event-beforerefresh'> /**
  164. </span> * @event beforerefresh
  165. * Fires before a refresh to the chart data is called. If the beforerefresh handler returns
  166. * &lt;tt&gt;false&lt;/tt&gt; the {@link #refresh} action will be cancelled.
  167. * @param {Chart} this
  168. */
  169. 'beforerefresh',
  170. <span id='Ext-chart-Chart-event-refresh'> /**
  171. </span> * @event refresh
  172. * Fires after the chart data has been refreshed.
  173. * @param {Chart} this
  174. */
  175. 'refresh'
  176. );
  177. this.store = Ext.StoreMgr.lookup(this.store);
  178. },
  179. <span id='Ext-chart-Chart-method-setStyle'> /**
  180. </span> * Sets a single style value on the Chart instance.
  181. *
  182. * @param name {String} Name of the Chart style value to change.
  183. * @param value {Object} New value to pass to the Chart style.
  184. */
  185. setStyle: function(name, value){
  186. this.swf.setStyle(name, Ext.encode(value));
  187. },
  188. <span id='Ext-chart-Chart-method-setStyles'> /**
  189. </span> * Resets all styles on the Chart instance.
  190. *
  191. * @param styles {Object} Initializer for all Chart styles.
  192. */
  193. setStyles: function(styles){
  194. this.swf.setStyles(Ext.encode(styles));
  195. },
  196. <span id='Ext-chart-Chart-method-setSeriesStyles'> /**
  197. </span> * Sets the styles on all series in the Chart.
  198. *
  199. * @param styles {Array} Initializer for all Chart series styles.
  200. */
  201. setSeriesStyles: function(styles){
  202. this.seriesStyles = styles;
  203. var s = [];
  204. Ext.each(styles, function(style){
  205. s.push(Ext.encode(style));
  206. });
  207. this.swf.setSeriesStyles(s);
  208. },
  209. <span id='Ext-chart-Chart-method-setCategoryNames'> setCategoryNames : function(names){
  210. </span> this.swf.setCategoryNames(names);
  211. },
  212. <span id='Ext-chart-Chart-method-setLegendRenderer'> setLegendRenderer : function(fn, scope){
  213. </span> var chart = this;
  214. scope = scope || chart;
  215. chart.removeFnProxy(chart.legendFnName);
  216. chart.legendFnName = chart.createFnProxy(function(name){
  217. return fn.call(scope, name);
  218. });
  219. chart.swf.setLegendLabelFunction(chart.legendFnName);
  220. },
  221. <span id='Ext-chart-Chart-method-setTipRenderer'> setTipRenderer : function(fn, scope){
  222. </span> var chart = this;
  223. scope = scope || chart;
  224. chart.removeFnProxy(chart.tipFnName);
  225. chart.tipFnName = chart.createFnProxy(function(item, index, series){
  226. var record = chart.store.getAt(index);
  227. return fn.call(scope, chart, record, index, series);
  228. });
  229. chart.swf.setDataTipFunction(chart.tipFnName);
  230. },
  231. <span id='Ext-chart-Chart-method-setSeries'> setSeries : function(series){
  232. </span> this.series = series;
  233. this.refresh();
  234. },
  235. <span id='Ext-chart-Chart-method-bindStore'> /**
  236. </span> * Changes the data store bound to this chart and refreshes it.
  237. * @param {Store} store The store to bind to this chart
  238. */
  239. bindStore : function(store, initial){
  240. if(!initial &amp;&amp; this.store){
  241. if(store !== this.store &amp;&amp; this.store.autoDestroy){
  242. this.store.destroy();
  243. }else{
  244. this.store.un(&quot;datachanged&quot;, this.refresh, this);
  245. this.store.un(&quot;add&quot;, this.delayRefresh, this);
  246. this.store.un(&quot;remove&quot;, this.delayRefresh, this);
  247. this.store.un(&quot;update&quot;, this.delayRefresh, this);
  248. this.store.un(&quot;clear&quot;, this.refresh, this);
  249. }
  250. }
  251. if(store){
  252. store = Ext.StoreMgr.lookup(store);
  253. store.on({
  254. scope: this,
  255. datachanged: this.refresh,
  256. add: this.delayRefresh,
  257. remove: this.delayRefresh,
  258. update: this.delayRefresh,
  259. clear: this.refresh
  260. });
  261. }
  262. this.store = store;
  263. if(store &amp;&amp; !initial){
  264. this.refresh();
  265. }
  266. },
  267. <span id='Ext-chart-Chart-method-onSwfReady'> onSwfReady : function(isReset){
  268. </span> Ext.chart.Chart.superclass.onSwfReady.call(this, isReset);
  269. var ref;
  270. this.swf.setType(this.type);
  271. if(this.chartStyle){
  272. this.setStyles(Ext.apply({}, this.extraStyle, this.chartStyle));
  273. }
  274. if(this.categoryNames){
  275. this.setCategoryNames(this.categoryNames);
  276. }
  277. if(this.tipRenderer){
  278. ref = this.getFunctionRef(this.tipRenderer);
  279. this.setTipRenderer(ref.fn, ref.scope);
  280. }
  281. if(this.legendRenderer){
  282. ref = this.getFunctionRef(this.legendRenderer);
  283. this.setLegendRenderer(ref.fn, ref.scope);
  284. }
  285. if(!isReset){
  286. this.bindStore(this.store, true);
  287. }
  288. this.refresh.defer(10, this);
  289. },
  290. <span id='Ext-chart-Chart-method-delayRefresh'> delayRefresh : function(){
  291. </span> if(!this.refreshTask){
  292. this.refreshTask = new Ext.util.DelayedTask(this.refresh, this);
  293. }
  294. this.refreshTask.delay(this.refreshBuffer);
  295. },
  296. <span id='Ext-chart-Chart-method-refresh'> refresh : function(){
  297. </span> if(this.fireEvent('beforerefresh', this) !== false){
  298. var styleChanged = false;
  299. // convert the store data into something YUI charts can understand
  300. var data = [], rs = this.store.data.items;
  301. for(var j = 0, len = rs.length; j &lt; len; j++){
  302. data[j] = rs[j].data;
  303. }
  304. //make a copy of the series definitions so that we aren't
  305. //editing them directly.
  306. var dataProvider = [];
  307. var seriesCount = 0;
  308. var currentSeries = null;
  309. var i = 0;
  310. if(this.series){
  311. seriesCount = this.series.length;
  312. for(i = 0; i &lt; seriesCount; i++){
  313. currentSeries = this.series[i];
  314. var clonedSeries = {};
  315. for(var prop in currentSeries){
  316. if(prop == &quot;style&quot; &amp;&amp; currentSeries.style !== null){
  317. clonedSeries.style = Ext.encode(currentSeries.style);
  318. styleChanged = true;
  319. //we don't want to modify the styles again next time
  320. //so null out the style property.
  321. // this causes issues
  322. // currentSeries.style = null;
  323. } else{
  324. clonedSeries[prop] = currentSeries[prop];
  325. }
  326. }
  327. dataProvider.push(clonedSeries);
  328. }
  329. }
  330. if(seriesCount &gt; 0){
  331. for(i = 0; i &lt; seriesCount; i++){
  332. currentSeries = dataProvider[i];
  333. if(!currentSeries.type){
  334. currentSeries.type = this.type;
  335. }
  336. currentSeries.dataProvider = data;
  337. }
  338. } else{
  339. dataProvider.push({type: this.type, dataProvider: data});
  340. }
  341. this.swf.setDataProvider(dataProvider);
  342. if(this.seriesStyles){
  343. this.setSeriesStyles(this.seriesStyles);
  344. }
  345. this.fireEvent('refresh', this);
  346. }
  347. },
  348. <span id='Ext-chart-Chart-method-createFnProxy'> // private
  349. </span> createFnProxy : function(fn){
  350. var fnName = 'extFnProxy' + (++Ext.chart.Chart.PROXY_FN_ID);
  351. Ext.chart.Chart.proxyFunction[fnName] = fn;
  352. return 'Ext.chart.Chart.proxyFunction.' + fnName;
  353. },
  354. <span id='Ext-chart-Chart-method-removeFnProxy'> // private
  355. </span> removeFnProxy : function(fn){
  356. if(!Ext.isEmpty(fn)){
  357. fn = fn.replace('Ext.chart.Chart.proxyFunction.', '');
  358. delete Ext.chart.Chart.proxyFunction[fn];
  359. }
  360. },
  361. <span id='Ext-chart-Chart-method-getFunctionRef'> // private
  362. </span> getFunctionRef : function(val){
  363. if(Ext.isFunction(val)){
  364. return {
  365. fn: val,
  366. scope: this
  367. };
  368. }else{
  369. return {
  370. fn: val.fn,
  371. scope: val.scope || this
  372. };
  373. }
  374. },
  375. <span id='Ext-chart-Chart-method-onDestroy'> // private
  376. </span> onDestroy: function(){
  377. if (this.refreshTask &amp;&amp; this.refreshTask.cancel){
  378. this.refreshTask.cancel();
  379. }
  380. Ext.chart.Chart.superclass.onDestroy.call(this);
  381. this.bindStore(null);
  382. this.removeFnProxy(this.tipFnName);
  383. this.removeFnProxy(this.legendFnName);
  384. }
  385. });
  386. Ext.reg('chart', Ext.chart.Chart);
  387. Ext.chart.Chart.PROXY_FN_ID = 0;
  388. Ext.chart.Chart.proxyFunction = {};
  389. <span id='Ext-chart-Chart-static-property-CHART_URL'>/**
  390. </span> * Sets the url to load the chart from. This should be set to a local resource.
  391. * @static
  392. * @type String
  393. */
  394. Ext.chart.Chart.CHART_URL = 'http:/' + '/yui.yahooapis.com/2.8.2/build/charts/assets/charts.swf';
  395. <span id='Ext-chart-PieChart-method-constructor'><span id='Ext-chart-PieChart'>/**
  396. </span></span> * @class Ext.chart.PieChart
  397. * @extends Ext.chart.Chart
  398. * @constructor
  399. * @xtype piechart
  400. */
  401. Ext.chart.PieChart = Ext.extend(Ext.chart.Chart, {
  402. <span id='Ext-chart-PieChart-property-type'> type: 'pie',
  403. </span>
  404. <span id='Ext-chart-PieChart-method-onSwfReady'> onSwfReady : function(isReset){
  405. </span> Ext.chart.PieChart.superclass.onSwfReady.call(this, isReset);
  406. this.setDataField(this.dataField);
  407. this.setCategoryField(this.categoryField);
  408. },
  409. <span id='Ext-chart-PieChart-method-setDataField'> setDataField : function(field){
  410. </span> this.dataField = field;
  411. this.swf.setDataField(field);
  412. },
  413. <span id='Ext-chart-PieChart-method-setCategoryField'> setCategoryField : function(field){
  414. </span> this.categoryField = field;
  415. this.swf.setCategoryField(field);
  416. }
  417. });
  418. Ext.reg('piechart', Ext.chart.PieChart);
  419. <span id='Ext-chart-CartesianChart-method-constructor'><span id='Ext-chart-CartesianChart'>/**
  420. </span></span> * @class Ext.chart.CartesianChart
  421. * @extends Ext.chart.Chart
  422. * @constructor
  423. * @xtype cartesianchart
  424. */
  425. Ext.chart.CartesianChart = Ext.extend(Ext.chart.Chart, {
  426. <span id='Ext-chart-CartesianChart-method-onSwfReady'> onSwfReady : function(isReset){
  427. </span> Ext.chart.CartesianChart.superclass.onSwfReady.call(this, isReset);
  428. this.labelFn = [];
  429. if(this.xField){
  430. this.setXField(this.xField);
  431. }
  432. if(this.yField){
  433. this.setYField(this.yField);
  434. }
  435. if(this.xAxis){
  436. this.setXAxis(this.xAxis);
  437. }
  438. if(this.xAxes){
  439. this.setXAxes(this.xAxes);
  440. }
  441. if(this.yAxis){
  442. this.setYAxis(this.yAxis);
  443. }
  444. if(this.yAxes){
  445. this.setYAxes(this.yAxes);
  446. }
  447. if(Ext.isDefined(this.constrainViewport)){
  448. this.swf.setConstrainViewport(this.constrainViewport);
  449. }
  450. },
  451. <span id='Ext-chart-CartesianChart-method-setXField'> setXField : function(value){
  452. </span> this.xField = value;
  453. this.swf.setHorizontalField(value);
  454. },
  455. <span id='Ext-chart-CartesianChart-method-setYField'> setYField : function(value){
  456. </span> this.yField = value;
  457. this.swf.setVerticalField(value);
  458. },
  459. <span id='Ext-chart-CartesianChart-method-setXAxis'> setXAxis : function(value){
  460. </span> this.xAxis = this.createAxis('xAxis', value);
  461. this.swf.setHorizontalAxis(this.xAxis);
  462. },
  463. <span id='Ext-chart-CartesianChart-method-setXAxes'> setXAxes : function(value){
  464. </span> var axis;
  465. for(var i = 0; i &lt; value.length; i++) {
  466. axis = this.createAxis('xAxis' + i, value[i]);
  467. this.swf.setHorizontalAxis(axis);
  468. }
  469. },
  470. <span id='Ext-chart-CartesianChart-method-setYAxis'> setYAxis : function(value){
  471. </span> this.yAxis = this.createAxis('yAxis', value);
  472. this.swf.setVerticalAxis(this.yAxis);
  473. },
  474. <span id='Ext-chart-CartesianChart-method-setYAxes'> setYAxes : function(value){
  475. </span> var axis;
  476. for(var i = 0; i &lt; value.length; i++) {
  477. axis = this.createAxis('yAxis' + i, value[i]);
  478. this.swf.setVerticalAxis(axis);
  479. }
  480. },
  481. <span id='Ext-chart-CartesianChart-method-createAxis'> createAxis : function(axis, value){
  482. </span> var o = Ext.apply({}, value),
  483. ref,
  484. old;
  485. if(this[axis]){
  486. old = this[axis].labelFunction;
  487. this.removeFnProxy(old);
  488. this.labelFn.remove(old);
  489. }
  490. if(o.labelRenderer){
  491. ref = this.getFunctionRef(o.labelRenderer);
  492. o.labelFunction = this.createFnProxy(function(v){
  493. return ref.fn.call(ref.scope, v);
  494. });
  495. delete o.labelRenderer;
  496. this.labelFn.push(o.labelFunction);
  497. }
  498. if(axis.indexOf('xAxis') &gt; -1 &amp;&amp; o.position == 'left'){
  499. o.position = 'bottom';
  500. }
  501. return o;
  502. },
  503. <span id='Ext-chart-CartesianChart-method-onDestroy'> onDestroy : function(){
  504. </span> Ext.chart.CartesianChart.superclass.onDestroy.call(this);
  505. Ext.each(this.labelFn, function(fn){
  506. this.removeFnProxy(fn);
  507. }, this);
  508. }
  509. });
  510. Ext.reg('cartesianchart', Ext.chart.CartesianChart);
  511. <span id='Ext-chart-LineChart-method-constructor'><span id='Ext-chart-LineChart'>/**
  512. </span></span> * @class Ext.chart.LineChart
  513. * @extends Ext.chart.CartesianChart
  514. * @constructor
  515. * @xtype linechart
  516. */
  517. Ext.chart.LineChart = Ext.extend(Ext.chart.CartesianChart, {
  518. <span id='Ext-chart-LineChart-property-type'> type: 'line'
  519. </span>});
  520. Ext.reg('linechart', Ext.chart.LineChart);
  521. <span id='Ext-chart-ColumnChart-method-constructor'><span id='Ext-chart-ColumnChart'>/**
  522. </span></span> * @class Ext.chart.ColumnChart
  523. * @extends Ext.chart.CartesianChart
  524. * @constructor
  525. * @xtype columnchart
  526. */
  527. Ext.chart.ColumnChart = Ext.extend(Ext.chart.CartesianChart, {
  528. <span id='Ext-chart-ColumnChart-property-type'> type: 'column'
  529. </span>});
  530. Ext.reg('columnchart', Ext.chart.ColumnChart);
  531. <span id='Ext-chart-StackedColumnChart-method-constructor'><span id='Ext-chart-StackedColumnChart'>/**
  532. </span></span> * @class Ext.chart.StackedColumnChart
  533. * @extends Ext.chart.CartesianChart
  534. * @constructor
  535. * @xtype stackedcolumnchart
  536. */
  537. Ext.chart.StackedColumnChart = Ext.extend(Ext.chart.CartesianChart, {
  538. <span id='Ext-chart-StackedColumnChart-property-type'> type: 'stackcolumn'
  539. </span>});
  540. Ext.reg('stackedcolumnchart', Ext.chart.StackedColumnChart);
  541. <span id='Ext-chart-BarChart-method-constructor'><span id='Ext-chart-BarChart'>/**
  542. </span></span> * @class Ext.chart.BarChart
  543. * @extends Ext.chart.CartesianChart
  544. * @constructor
  545. * @xtype barchart
  546. */
  547. Ext.chart.BarChart = Ext.extend(Ext.chart.CartesianChart, {
  548. <span id='Ext-chart-BarChart-property-type'> type: 'bar'
  549. </span>});
  550. Ext.reg('barchart', Ext.chart.BarChart);
  551. <span id='Ext-chart-StackedBarChart-method-constructor'><span id='Ext-chart-StackedBarChart'>/**
  552. </span></span> * @class Ext.chart.StackedBarChart
  553. * @extends Ext.chart.CartesianChart
  554. * @constructor
  555. * @xtype stackedbarchart
  556. */
  557. Ext.chart.StackedBarChart = Ext.extend(Ext.chart.CartesianChart, {
  558. <span id='Ext-chart-StackedBarChart-property-type'> type: 'stackbar'
  559. </span>});
  560. Ext.reg('stackedbarchart', Ext.chart.StackedBarChart);
  561. <span id='Ext-chart-Axis-method-constructor'><span id='Ext-chart-Axis'>/**
  562. </span></span> * @class Ext.chart.Axis
  563. * Defines a CartesianChart's vertical or horizontal axis.
  564. * @constructor
  565. */
  566. Ext.chart.Axis = function(config){
  567. Ext.apply(this, config);
  568. };
  569. Ext.chart.Axis.prototype =
  570. {
  571. <span id='Ext-chart-Axis-property-type'> /**
  572. </span> * The type of axis.
  573. *
  574. * @property type
  575. * @type String
  576. */
  577. type: null,
  578. <span id='Ext-chart-Axis-property-orientation'> /**
  579. </span> * The direction in which the axis is drawn. May be &quot;horizontal&quot; or &quot;vertical&quot;.
  580. *
  581. * @property orientation
  582. * @type String
  583. */
  584. orientation: &quot;horizontal&quot;,
  585. <span id='Ext-chart-Axis-property-reverse'> /**
  586. </span> * If true, the items on the axis will be drawn in opposite direction.
  587. *
  588. * @property reverse
  589. * @type Boolean
  590. */
  591. reverse: false,
  592. <span id='Ext-chart-Axis-property-labelFunction'> /**
  593. </span> * A string reference to the globally-accessible function that may be called to
  594. * determine each of the label values for this axis.
  595. *
  596. * @property labelFunction
  597. * @type String
  598. */
  599. labelFunction: null,
  600. <span id='Ext-chart-Axis-property-hideOverlappingLabels'> /**
  601. </span> * If true, labels that overlap previously drawn labels on the axis will be hidden.
  602. *
  603. * @property hideOverlappingLabels
  604. * @type Boolean
  605. */
  606. hideOverlappingLabels: true,
  607. <span id='Ext-chart-Axis-property-labelSpacing'> /**
  608. </span> * The space, in pixels, between labels on an axis.
  609. *
  610. * @property labelSpacing
  611. * @type Number
  612. */
  613. labelSpacing: 2
  614. };
  615. <span id='Ext-chart-NumericAxis-method-constructor'><span id='Ext-chart-NumericAxis'>/**
  616. </span></span> * @class Ext.chart.NumericAxis
  617. * @extends Ext.chart.Axis
  618. * A type of axis whose units are measured in numeric values.
  619. * @constructor
  620. */
  621. Ext.chart.NumericAxis = Ext.extend(Ext.chart.Axis, {
  622. <span id='Ext-chart-NumericAxis-property-type'> type: &quot;numeric&quot;,
  623. </span>
  624. <span id='Ext-chart-NumericAxis-property-minimum'> /**
  625. </span> * The minimum value drawn by the axis. If not set explicitly, the axis
  626. * minimum will be calculated automatically.
  627. *
  628. * @property minimum
  629. * @type Number
  630. */
  631. minimum: NaN,
  632. <span id='Ext-chart-NumericAxis-property-maximum'> /**
  633. </span> * The maximum value drawn by the axis. If not set explicitly, the axis
  634. * maximum will be calculated automatically.
  635. *
  636. * @property maximum
  637. * @type Number
  638. */
  639. maximum: NaN,
  640. <span id='Ext-chart-NumericAxis-property-majorUnit'> /**
  641. </span> * The spacing between major intervals on this axis.
  642. *
  643. * @property majorUnit
  644. * @type Number
  645. */
  646. majorUnit: NaN,
  647. <span id='Ext-chart-NumericAxis-property-minorUnit'> /**
  648. </span> * The spacing between minor intervals on this axis.
  649. *
  650. * @property minorUnit
  651. * @type Number
  652. */
  653. minorUnit: NaN,
  654. <span id='Ext-chart-NumericAxis-property-snapToUnits'> /**
  655. </span> * If true, the labels, ticks, gridlines, and other objects will snap to the
  656. * nearest major or minor unit. If false, their position will be based on
  657. * the minimum value.
  658. *
  659. * @property snapToUnits
  660. * @type Boolean
  661. */
  662. snapToUnits: true,
  663. <span id='Ext-chart-NumericAxis-property-alwaysShowZero'> /**
  664. </span> * If true, and the bounds are calculated automatically, either the minimum
  665. * or maximum will be set to zero.
  666. *
  667. * @property alwaysShowZero
  668. * @type Boolean
  669. */
  670. alwaysShowZero: true,
  671. <span id='Ext-chart-NumericAxis-property-scale'> /**
  672. </span> * The scaling algorithm to use on this axis. May be &quot;linear&quot; or
  673. * &quot;logarithmic&quot;.
  674. *
  675. * @property scale
  676. * @type String
  677. */
  678. scale: &quot;linear&quot;,
  679. <span id='Ext-chart-NumericAxis-property-roundMajorUnit'> /**
  680. </span> * Indicates whether to round the major unit.
  681. *
  682. * @property roundMajorUnit
  683. * @type Boolean
  684. */
  685. roundMajorUnit: true,
  686. <span id='Ext-chart-NumericAxis-property-calculateByLabelSize'> /**
  687. </span> * Indicates whether to factor in the size of the labels when calculating a
  688. * major unit.
  689. *
  690. * @property calculateByLabelSize
  691. * @type Boolean
  692. */
  693. calculateByLabelSize: true,
  694. <span id='Ext-chart-NumericAxis-property-position'> /**
  695. </span> * Indicates the position of the axis relative to the chart
  696. *
  697. * @property position
  698. * @type String
  699. */
  700. position: 'left',
  701. <span id='Ext-chart-NumericAxis-property-adjustMaximumByMajorUnit'> /**
  702. </span> * Indicates whether to extend maximum beyond data's maximum to the nearest
  703. * majorUnit.
  704. *
  705. * @property adjustMaximumByMajorUnit
  706. * @type Boolean
  707. */
  708. adjustMaximumByMajorUnit: true,
  709. <span id='Ext-chart-NumericAxis-property-adjustMinimumByMajorUnit'> /**
  710. </span> * Indicates whether to extend the minimum beyond data's minimum to the
  711. * nearest majorUnit.
  712. *
  713. * @property adjustMinimumByMajorUnit
  714. * @type Boolean
  715. */
  716. adjustMinimumByMajorUnit: true
  717. });
  718. <span id='Ext-chart-TimeAxis-method-constructor'><span id='Ext-chart-TimeAxis'>/**
  719. </span></span> * @class Ext.chart.TimeAxis
  720. * @extends Ext.chart.Axis
  721. * A type of axis whose units are measured in time-based values.
  722. * @constructor
  723. */
  724. Ext.chart.TimeAxis = Ext.extend(Ext.chart.Axis, {
  725. <span id='Ext-chart-TimeAxis-property-type'> type: &quot;time&quot;,
  726. </span>
  727. <span id='Ext-chart-TimeAxis-property-minimum'> /**
  728. </span> * The minimum value drawn by the axis. If not set explicitly, the axis
  729. * minimum will be calculated automatically.
  730. *
  731. * @property minimum
  732. * @type Date
  733. */
  734. minimum: null,
  735. <span id='Ext-chart-TimeAxis-property-maximum'> /**
  736. </span> * The maximum value drawn by the axis. If not set explicitly, the axis
  737. * maximum will be calculated automatically.
  738. *
  739. * @property maximum
  740. * @type Number
  741. */
  742. maximum: null,
  743. <span id='Ext-chart-TimeAxis-property-majorUnit'> /**
  744. </span> * The spacing between major intervals on this axis.
  745. *
  746. * @property majorUnit
  747. * @type Number
  748. */
  749. majorUnit: NaN,
  750. <span id='Ext-chart-TimeAxis-property-majorTimeUnit'> /**
  751. </span> * The time unit used by the majorUnit.
  752. *
  753. * @property majorTimeUnit
  754. * @type String
  755. */
  756. majorTimeUnit: null,
  757. <span id='Ext-chart-TimeAxis-property-minorUnit'> /**
  758. </span> * The spacing between minor intervals on this axis.
  759. *
  760. * @property minorUnit
  761. * @type Number
  762. */
  763. minorUnit: NaN,
  764. <span id='Ext-chart-TimeAxis-property-minorTimeUnit'> /**
  765. </span> * The time unit used by the minorUnit.
  766. *
  767. * @property minorTimeUnit
  768. * @type String
  769. */
  770. minorTimeUnit: null,
  771. <span id='Ext-chart-TimeAxis-property-snapToUnits'> /**
  772. </span> * If true, the labels, ticks, gridlines, and other objects will snap to the
  773. * nearest major or minor unit. If false, their position will be based on
  774. * the minimum value.
  775. *
  776. * @property snapToUnits
  777. * @type Boolean
  778. */
  779. snapToUnits: true,
  780. <span id='Ext-chart-TimeAxis-property-stackingEnabled'> /**
  781. </span> * Series that are stackable will only stack when this value is set to true.
  782. *
  783. * @property stackingEnabled
  784. * @type Boolean
  785. */
  786. stackingEnabled: false,
  787. <span id='Ext-chart-TimeAxis-property-calculateByLabelSize'> /**
  788. </span> * Indicates whether to factor in the size of the labels when calculating a
  789. * major unit.
  790. *
  791. * @property calculateByLabelSize
  792. * @type Boolean
  793. */
  794. calculateByLabelSize: true
  795. });
  796. <span id='Ext-chart-CategoryAxis-method-constructor'><span id='Ext-chart-CategoryAxis'>/**
  797. </span></span> * @class Ext.chart.CategoryAxis
  798. * @extends Ext.chart.Axis
  799. * A type of axis that displays items in categories.
  800. * @constructor
  801. */
  802. Ext.chart.CategoryAxis = Ext.extend(Ext.chart.Axis, {
  803. <span id='Ext-chart-CategoryAxis-property-type'> type: &quot;category&quot;,
  804. </span>
  805. <span id='Ext-chart-CategoryAxis-property-categoryNames'> /**
  806. </span> * A list of category names to display along this axis.
  807. *
  808. * @property categoryNames
  809. * @type Array
  810. */
  811. categoryNames: null,
  812. <span id='Ext-chart-CategoryAxis-property-calculateCategoryCount'> /**
  813. </span> * Indicates whether or not to calculate the number of categories (ticks and
  814. * labels) when there is not enough room to display all labels on the axis.
  815. * If set to true, the axis will determine the number of categories to plot.
  816. * If not, all categories will be plotted.
  817. *
  818. * @property calculateCategoryCount
  819. * @type Boolean
  820. */
  821. calculateCategoryCount: false
  822. });
  823. <span id='Ext-chart-Series-method-constructor'><span id='Ext-chart-Series'>/**
  824. </span></span> * @class Ext.chart.Series
  825. * Series class for the charts widget.
  826. * @constructor
  827. */
  828. Ext.chart.Series = function(config) { Ext.apply(this, config); };
  829. Ext.chart.Series.prototype =
  830. {
  831. <span id='Ext-chart-Series-property-type'> /**
  832. </span> * The type of series.
  833. *
  834. * @property type
  835. * @type String
  836. */
  837. type: null,
  838. <span id='Ext-chart-Series-property-displayName'> /**
  839. </span> * The human-readable name of the series.
  840. *
  841. * @property displayName
  842. * @type String
  843. */
  844. displayName: null
  845. };
  846. <span id='Ext-chart-CartesianSeries-method-constructor'><span id='Ext-chart-CartesianSeries'>/**
  847. </span></span> * @class Ext.chart.CartesianSeries
  848. * @extends Ext.chart.Series
  849. * CartesianSeries class for the charts widget.
  850. * @constructor
  851. */
  852. Ext.chart.CartesianSeries = Ext.extend(Ext.chart.Series, {
  853. <span id='Ext-chart-CartesianSeries-property-xField'> /**
  854. </span> * The field used to access the x-axis value from the items from the data
  855. * source.
  856. *
  857. * @property xField
  858. * @type String
  859. */
  860. xField: null,
  861. <span id='Ext-chart-CartesianSeries-property-yField'> /**
  862. </span> * The field used to access the y-axis value from the items from the data
  863. * source.
  864. *
  865. * @property yField
  866. * @type String
  867. */
  868. yField: null,
  869. <span id='Ext-chart-CartesianSeries-property-showInLegend'> /**
  870. </span> * False to not show this series in the legend. Defaults to &lt;tt&gt;true&lt;/tt&gt;.
  871. *
  872. * @property showInLegend
  873. * @type Boolean
  874. */
  875. showInLegend: true,
  876. <span id='Ext-chart-CartesianSeries-property-axis'> /**
  877. </span> * Indicates which axis the series will bind to
  878. *
  879. * @property axis
  880. * @type String
  881. */
  882. axis: 'primary'
  883. });
  884. <span id='Ext-chart-ColumnSeries-method-constructor'><span id='Ext-chart-ColumnSeries'>/**
  885. </span></span> * @class Ext.chart.ColumnSeries
  886. * @extends Ext.chart.CartesianSeries
  887. * ColumnSeries class for the charts widget.
  888. * @constructor
  889. */
  890. Ext.chart.ColumnSeries = Ext.extend(Ext.chart.CartesianSeries, {
  891. <span id='Ext-chart-ColumnSeries-property-type'> type: &quot;column&quot;
  892. </span>});
  893. <span id='Ext-chart-LineSeries-method-constructor'><span id='Ext-chart-LineSeries'>/**
  894. </span></span> * @class Ext.chart.LineSeries
  895. * @extends Ext.chart.CartesianSeries
  896. * LineSeries class for the charts widget.
  897. * @constructor
  898. */
  899. Ext.chart.LineSeries = Ext.extend(Ext.chart.CartesianSeries, {
  900. <span id='Ext-chart-LineSeries-property-type'> type: &quot;line&quot;
  901. </span>});
  902. <span id='Ext-chart-BarSeries-method-constructor'><span id='Ext-chart-BarSeries'>/**
  903. </span></span> * @class Ext.chart.BarSeries
  904. * @extends Ext.chart.CartesianSeries
  905. * BarSeries class for the charts widget.
  906. * @constructor
  907. */
  908. Ext.chart.BarSeries = Ext.extend(Ext.chart.CartesianSeries, {
  909. <span id='Ext-chart-BarSeries-property-type'> type: &quot;bar&quot;
  910. </span>});
  911. <span id='Ext-chart-PieSeries-method-constructor'><span id='Ext-chart-PieSeries'>/**
  912. </span></span> * @class Ext.chart.PieSeries
  913. * @extends Ext.chart.Series
  914. * PieSeries class for the charts widget.
  915. * @constructor
  916. */
  917. Ext.chart.PieSeries = Ext.extend(Ext.chart.Series, {
  918. <span id='Ext-chart-PieSeries-property-type'> type: &quot;pie&quot;,
  919. </span><span id='Ext-chart-PieSeries-property-dataField'> dataField: null,
  920. </span><span id='Ext-chart-PieSeries-property-categoryField'> categoryField: null
  921. </span>});</pre>
  922. </body>
  923. </html>