3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
\r
4 <title>The source code</title>
\r
5 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
6 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
8 <body onload="prettyPrint();">
\r
9 <pre class="prettyprint lang-js"><div id="cls-Ext.chart.Chart"></div>/**
\r
10 * @class Ext.chart.Chart
\r
11 * @extends Ext.FlashComponent
\r
12 * The Ext.chart package provides the capability to visualize data with flash based charting.
\r
13 * Each chart binds directly to an Ext.data.Store enabling automatic updates of the chart.
\r
14 * To change the look and feel of a chart, see the {@link #chartStyle} and {@link #extraStyle} config options.
\r
19 Ext.chart.Chart = Ext.extend(Ext.FlashComponent, {
\r
22 <div id="cfg-Ext.chart.Chart-backgroundColor"></div>/**
\r
23 * @cfg {String} backgroundColor
\r
27 <div id="cfg-Ext.chart.Chart-chartStyle"></div>/**
\r
28 * @cfg {Object} chartStyle
\r
29 * Sets styles for this chart. This contains default styling, so modifying this property will <b>override</b>
\r
30 * the built in styles of the chart. Use {@link #extraStyle} to add customizations to the default styling.
\r
34 animationEnabled: true,
\r
59 <div id="cfg-Ext.chart.Chart-url"></div>/**
\r
61 * The url to load the chart from. This defaults to Ext.chart.Chart.CHART_URL, which should
\r
62 * be modified to point to the local charts resource.
\r
65 <div id="cfg-Ext.chart.Chart-extraStyle"></div>/**
\r
66 * @cfg {Object} extraStyle
\r
67 * Contains extra styles that will be added or overwritten to the default chartStyle. Defaults to <tt>null</tt>.
\r
68 * For a detailed list of the options available, visit the YUI Charts site
\r
69 * at <a href="http://developer.yahoo.com/yui/charts/#basicstyles">http://developer.yahoo.com/yui/charts/#basicstyles</a><br/>
\r
70 * Some of the options availabe:<br />
\r
71 * <ul style="padding:5px;padding-left:16px;list-style-type:inherit;">
\r
72 * <li><b>padding</b> - The space around the edge of the chart's contents. Padding does not increase the size of the chart.</li>
\r
73 * <li><b>animationEnabled</b> - A Boolean value that specifies whether marker animations are enabled or not. Enabled by default.</li>
\r
74 * <li><b>font</b> - An Object defining the font style to be used in the chart. Defaults to <tt>{ name: 'Tahoma', color: 0x444444, size: 11 }</tt><br/>
\r
75 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
76 * <li><b>name</b> - font name</li>
\r
77 * <li><b>color</b> - font color (hex code, ie: "#ff0000", "ff0000" or 0xff0000)</li>
\r
78 * <li><b>size</b> - font size in points (numeric portion only, ie: 11)</li>
\r
79 * <li><b>bold</b> - boolean</li>
\r
80 * <li><b>italic</b> - boolean</li>
\r
81 * <li><b>underline</b> - boolean</li>
\r
84 * <li><b>border</b> - An object defining the border style around the chart. The chart itself will decrease in dimensions to accomodate the border.<br/>
\r
85 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
86 * <li><b>color</b> - border color (hex code, ie: "#ff0000", "ff0000" or 0xff0000)</li>
\r
87 * <li><b>size</b> - border size in pixels (numeric portion only, ie: 1)</li>
\r
90 * <li><b>background</b> - An object defining the background style of the chart.<br/>
\r
91 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
92 * <li><b>color</b> - border color (hex code, ie: "#ff0000", "ff0000" or 0xff0000)</li>
\r
93 * <li><b>image</b> - an image URL. May be relative to the current document or absolute.</li>
\r
96 * <li><b>legend</b> - An object defining the legend style<br/>
\r
97 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
98 * <li><b>display</b> - location of the legend. Possible values are "none", "left", "right", "top", and "bottom".</li>
\r
99 * <li><b>spacing</b> - an image URL. May be relative to the current document or absolute.</li>
\r
100 * <li><b>padding, border, background, font</b> - same options as described above.</li>
\r
102 * <li><b>dataTip</b> - An object defining the style of the data tip (tooltip).<br/>
\r
103 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
104 * <li><b>padding, border, background, font</b> - same options as described above.</li>
\r
106 * <li><b>xAxis and yAxis</b> - An object defining the style of the style of either axis.<br/>
\r
107 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
108 * <li><b>color</b> - same option as described above.</li>
\r
109 * <li><b>size</b> - same option as described above.</li>
\r
110 * <li><b>showLabels</b> - boolean</li>
\r
111 * <li><b>labelRotation</b> - a value in degrees from -90 through 90. Default is zero.</li>
\r
113 * <li><b>majorGridLines and minorGridLines</b> - An object defining the style of the style of the grid lines.<br/>
\r
114 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
115 * <li><b>color, size</b> - same options as described above.</li>
\r
117 * <li><b>zeroGridLine</b> - An object defining the style of the style of the zero grid line.<br/>
\r
118 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
119 * <li><b>color, size</b> - same options as described above.</li>
\r
121 * <li><b>majorTicks and minorTicks</b> - An object defining the style of the style of ticks in the chart.<br/>
\r
122 * <ul style="padding:5px;padding-left:26px;list-style-type:circle;">
\r
123 * <li><b>color, size</b> - same options as described above.</li>
\r
124 * <li><b>length</b> - the length of each tick in pixels extending from the axis.</li>
\r
125 * <li><b>display</b> - how the ticks are drawn. Possible values are "none", "inside", "outside", and "cross".</li>
\r
131 <div id="cfg-Ext.chart.Chart-seriesStyles"></div>/**
\r
132 * @cfg {Object} seriesStyles
\r
133 * Contains styles to apply to the series after a refresh. Defaults to <tt>null</tt>.
\r
135 seriesStyles: null,
\r
137 <div id="cfg-Ext.chart.Chart-disableCaching"></div>/**
\r
138 * @cfg {Boolean} disableCaching
\r
139 * True to add a "cache buster" to the end of the chart url. Defaults to true for Opera and IE.
\r
141 disableCaching: Ext.isIE || Ext.isOpera,
\r
142 disableCacheParam: '_dc',
\r
144 initComponent : function(){
\r
145 Ext.chart.Chart.superclass.initComponent.call(this);
\r
147 this.url = Ext.chart.Chart.CHART_URL;
\r
149 if(this.disableCaching){
\r
150 this.url = Ext.urlAppend(this.url, String.format('{0}={1}', this.disableCacheParam, new Date().getTime()));
\r
160 <div id="event-Ext.chart.Chart-beforerefresh"></div>/**
\r
161 * @event beforerefresh
\r
162 * Fires before a refresh to the chart data is called. If the beforerefresh handler returns
\r
163 * <tt>false</tt> the {@link #refresh} action will be cancelled.
\r
164 * @param {Chart} this
\r
167 <div id="event-Ext.chart.Chart-refresh"></div>/**
\r
169 * Fires after the chart data has been refreshed.
\r
170 * @param {Chart} this
\r
174 this.store = Ext.StoreMgr.lookup(this.store);
\r
177 <div id="method-Ext.chart.Chart-setStyle"></div>/**
\r
178 * Sets a single style value on the Chart instance.
\r
180 * @param name {String} Name of the Chart style value to change.
\r
181 * @param value {Object} New value to pass to the Chart style.
\r
183 setStyle: function(name, value){
\r
184 this.swf.setStyle(name, Ext.encode(value));
\r
187 <div id="method-Ext.chart.Chart-setStyles"></div>/**
\r
188 * Resets all styles on the Chart instance.
\r
190 * @param styles {Object} Initializer for all Chart styles.
\r
192 setStyles: function(styles){
\r
193 this.swf.setStyles(Ext.encode(styles));
\r
196 <div id="method-Ext.chart.Chart-setSeriesStyles"></div>/**
\r
197 * Sets the styles on all series in the Chart.
\r
199 * @param styles {Array} Initializer for all Chart series styles.
\r
201 setSeriesStyles: function(styles){
\r
202 this.seriesStyles = styles;
\r
204 Ext.each(styles, function(style){
\r
205 s.push(Ext.encode(style));
\r
207 this.swf.setSeriesStyles(s);
\r
210 setCategoryNames : function(names){
\r
211 this.swf.setCategoryNames(names);
\r
214 setTipRenderer : function(fn){
\r
216 this.tipFnName = this.createFnProxy(function(item, index, series){
\r
217 var record = chart.store.getAt(index);
\r
218 return fn(chart, record, index, series);
\r
219 }, this.tipFnName);
\r
220 this.swf.setDataTipFunction(this.tipFnName);
\r
223 setSeries : function(series){
\r
224 this.series = series;
\r
228 <div id="method-Ext.chart.Chart-bindStore"></div>/**
\r
229 * Changes the data store bound to this chart and refreshes it.
\r
230 * @param {Store} store The store to bind to this chart
\r
232 bindStore : function(store, initial){
\r
233 if(!initial && this.store){
\r
234 if(store !== this.store && this.store.autoDestroy){
\r
235 this.store.destroy();
\r
237 this.store.un("datachanged", this.refresh, this);
\r
238 this.store.un("add", this.delayRefresh, this);
\r
239 this.store.un("remove", this.delayRefresh, this);
\r
240 this.store.un("update", this.delayRefresh, this);
\r
241 this.store.un("clear", this.refresh, this);
\r
245 store = Ext.StoreMgr.lookup(store);
\r
248 datachanged: this.refresh,
\r
249 add: this.delayRefresh,
\r
250 remove: this.delayRefresh,
\r
251 update: this.delayRefresh,
\r
252 clear: this.refresh
\r
255 this.store = store;
\r
256 if(store && !initial){
\r
261 onSwfReady : function(isReset){
\r
262 Ext.chart.Chart.superclass.onSwfReady.call(this, isReset);
\r
263 this.swf.setType(this.type);
\r
265 if(this.chartStyle){
\r
266 this.setStyles(Ext.apply({}, this.extraStyle, this.chartStyle));
\r
269 if(this.categoryNames){
\r
270 this.setCategoryNames(this.categoryNames);
\r
273 if(this.tipRenderer){
\r
274 this.setTipRenderer(this.tipRenderer);
\r
277 this.bindStore(this.store, true);
\r
279 this.refresh.defer(10, this);
\r
282 delayRefresh : function(){
\r
283 if(!this.refreshTask){
\r
284 this.refreshTask = new Ext.util.DelayedTask(this.refresh, this);
\r
286 this.refreshTask.delay(this.refreshBuffer);
\r
289 refresh : function(){
\r
290 if(this.fireEvent('beforerefresh', this) !== false){
\r
291 var styleChanged = false;
\r
292 // convert the store data into something YUI charts can understand
\r
293 var data = [], rs = this.store.data.items;
\r
294 for(var j = 0, len = rs.length; j < len; j++){
\r
295 data[j] = rs[j].data;
\r
297 //make a copy of the series definitions so that we aren't
\r
298 //editing them directly.
\r
299 var dataProvider = [];
\r
300 var seriesCount = 0;
\r
301 var currentSeries = null;
\r
304 seriesCount = this.series.length;
\r
305 for(i = 0; i < seriesCount; i++){
\r
306 currentSeries = this.series[i];
\r
307 var clonedSeries = {};
\r
308 for(var prop in currentSeries){
\r
309 if(prop == "style" && currentSeries.style !== null){
\r
310 clonedSeries.style = Ext.encode(currentSeries.style);
\r
311 styleChanged = true;
\r
312 //we don't want to modify the styles again next time
\r
313 //so null out the style property.
\r
314 // this causes issues
\r
315 // currentSeries.style = null;
\r
317 clonedSeries[prop] = currentSeries[prop];
\r
320 dataProvider.push(clonedSeries);
\r
324 if(seriesCount > 0){
\r
325 for(i = 0; i < seriesCount; i++){
\r
326 currentSeries = dataProvider[i];
\r
327 if(!currentSeries.type){
\r
328 currentSeries.type = this.type;
\r
330 currentSeries.dataProvider = data;
\r
333 dataProvider.push({type: this.type, dataProvider: data});
\r
335 this.swf.setDataProvider(dataProvider);
\r
336 if(this.seriesStyles){
\r
337 this.setSeriesStyles(this.seriesStyles);
\r
339 this.fireEvent('refresh', this);
\r
343 createFnProxy : function(fn, old){
\r
345 delete window[old];
\r
347 var fnName = "extFnProxy" + (++Ext.chart.Chart.PROXY_FN_ID);
\r
348 window[fnName] = fn;
\r
352 onDestroy: function(){
\r
353 Ext.chart.Chart.superclass.onDestroy.call(this);
\r
354 this.bindStore(null);
\r
355 var tip = this.tipFnName;
\r
356 if(!Ext.isEmpty(tip)){
\r
357 delete window[tip];
\r
361 Ext.reg('chart', Ext.chart.Chart);
\r
362 Ext.chart.Chart.PROXY_FN_ID = 0;
\r
364 <div id="prop-Ext.chart.Chart-CHART_URL"></div>/**
\r
365 * Sets the url to load the chart from. This should be set to a local resource.
\r
369 Ext.chart.Chart.CHART_URL = 'http:/' + '/yui.yahooapis.com/2.7.0/build/charts/assets/charts.swf';
\r
371 <div id="cls-Ext.chart.PieChart"></div>/**
\r
372 * @class Ext.chart.PieChart
\r
373 * @extends Ext.chart.Chart
\r
377 Ext.chart.PieChart = Ext.extend(Ext.chart.Chart, {
\r
380 onSwfReady : function(isReset){
\r
381 Ext.chart.PieChart.superclass.onSwfReady.call(this, isReset);
\r
383 this.setDataField(this.dataField);
\r
384 this.setCategoryField(this.categoryField);
\r
387 setDataField : function(field){
\r
388 this.dataField = field;
\r
389 this.swf.setDataField(field);
\r
392 setCategoryField : function(field){
\r
393 this.categoryField = field;
\r
394 this.swf.setCategoryField(field);
\r
397 Ext.reg('piechart', Ext.chart.PieChart);
\r
399 <div id="cls-Ext.chart.CartesianChart"></div>/**
\r
400 * @class Ext.chart.CartesianChart
\r
401 * @extends Ext.chart.Chart
\r
403 * @xtype cartesianchart
\r
405 Ext.chart.CartesianChart = Ext.extend(Ext.chart.Chart, {
\r
406 onSwfReady : function(isReset){
\r
407 Ext.chart.CartesianChart.superclass.onSwfReady.call(this, isReset);
\r
410 this.setXField(this.xField);
\r
413 this.setYField(this.yField);
\r
416 this.setXAxis(this.xAxis);
\r
419 this.setYAxis(this.yAxis);
\r
423 setXField : function(value){
\r
424 this.xField = value;
\r
425 this.swf.setHorizontalField(value);
\r
428 setYField : function(value){
\r
429 this.yField = value;
\r
430 this.swf.setVerticalField(value);
\r
433 setXAxis : function(value){
\r
434 this.xAxis = this.createAxis('xAxis', value);
\r
435 this.swf.setHorizontalAxis(this.xAxis);
\r
438 setYAxis : function(value){
\r
439 this.yAxis = this.createAxis('yAxis', value);
\r
440 this.swf.setVerticalAxis(this.yAxis);
\r
443 createAxis : function(axis, value){
\r
444 var o = Ext.apply({}, value), oldFn = null;
\r
446 oldFn = this[axis].labelFunction;
\r
448 if(o.labelRenderer){
\r
449 var fn = o.labelRenderer;
\r
450 o.labelFunction = this.createFnProxy(function(v){
\r
453 delete o.labelRenderer;
\r
458 Ext.reg('cartesianchart', Ext.chart.CartesianChart);
\r
460 <div id="cls-Ext.chart.LineChart"></div>/**
\r
461 * @class Ext.chart.LineChart
\r
462 * @extends Ext.chart.CartesianChart
\r
466 Ext.chart.LineChart = Ext.extend(Ext.chart.CartesianChart, {
\r
469 Ext.reg('linechart', Ext.chart.LineChart);
\r
471 <div id="cls-Ext.chart.ColumnChart"></div>/**
\r
472 * @class Ext.chart.ColumnChart
\r
473 * @extends Ext.chart.CartesianChart
\r
475 * @xtype columnchart
\r
477 Ext.chart.ColumnChart = Ext.extend(Ext.chart.CartesianChart, {
\r
480 Ext.reg('columnchart', Ext.chart.ColumnChart);
\r
482 <div id="cls-Ext.chart.StackedColumnChart"></div>/**
\r
483 * @class Ext.chart.StackedColumnChart
\r
484 * @extends Ext.chart.CartesianChart
\r
486 * @xtype stackedcolumnchart
\r
488 Ext.chart.StackedColumnChart = Ext.extend(Ext.chart.CartesianChart, {
\r
489 type: 'stackcolumn'
\r
491 Ext.reg('stackedcolumnchart', Ext.chart.StackedColumnChart);
\r
493 <div id="cls-Ext.chart.BarChart"></div>/**
\r
494 * @class Ext.chart.BarChart
\r
495 * @extends Ext.chart.CartesianChart
\r
499 Ext.chart.BarChart = Ext.extend(Ext.chart.CartesianChart, {
\r
502 Ext.reg('barchart', Ext.chart.BarChart);
\r
504 <div id="cls-Ext.chart.StackedBarChart"></div>/**
\r
505 * @class Ext.chart.StackedBarChart
\r
506 * @extends Ext.chart.CartesianChart
\r
508 * @xtype stackedbarchart
\r
510 Ext.chart.StackedBarChart = Ext.extend(Ext.chart.CartesianChart, {
\r
513 Ext.reg('stackedbarchart', Ext.chart.StackedBarChart);
\r
517 <div id="cls-Ext.chart.Axis"></div>/**
\r
518 * @class Ext.chart.Axis
\r
519 * Defines a CartesianChart's vertical or horizontal axis.
\r
522 Ext.chart.Axis = function(config){
\r
523 Ext.apply(this, config);
\r
526 Ext.chart.Axis.prototype =
\r
528 <div id="prop-Ext.chart.Axis-type"></div>/**
\r
529 * The type of axis.
\r
536 <div id="prop-Ext.chart.Axis-orientation"></div>/**
\r
537 * The direction in which the axis is drawn. May be "horizontal" or "vertical".
\r
539 * @property orientation
\r
542 orientation: "horizontal",
\r
544 <div id="prop-Ext.chart.Axis-reverse"></div>/**
\r
545 * If true, the items on the axis will be drawn in opposite direction.
\r
547 * @property reverse
\r
552 <div id="prop-Ext.chart.Axis-labelFunction"></div>/**
\r
553 * A string reference to the globally-accessible function that may be called to
\r
554 * determine each of the label values for this axis.
\r
556 * @property labelFunction
\r
559 labelFunction: null,
\r
561 <div id="prop-Ext.chart.Axis-hideOverlappingLabels"></div>/**
\r
562 * If true, labels that overlap previously drawn labels on the axis will be hidden.
\r
564 * @property hideOverlappingLabels
\r
567 hideOverlappingLabels: true
\r
570 <div id="cls-Ext.chart.NumericAxis"></div>/**
\r
571 * @class Ext.chart.NumericAxis
\r
572 * @extends Ext.chart.Axis
\r
573 * A type of axis whose units are measured in numeric values.
\r
576 Ext.chart.NumericAxis = Ext.extend(Ext.chart.Axis, {
\r
579 <div id="prop-Ext.chart.NumericAxis-minimum"></div>/**
\r
580 * The minimum value drawn by the axis. If not set explicitly, the axis minimum
\r
581 * will be calculated automatically.
\r
583 * @property minimum
\r
588 <div id="prop-Ext.chart.NumericAxis-maximum"></div>/**
\r
589 * The maximum value drawn by the axis. If not set explicitly, the axis maximum
\r
590 * will be calculated automatically.
\r
592 * @property maximum
\r
597 <div id="prop-Ext.chart.NumericAxis-majorUnit"></div>/**
\r
598 * The spacing between major intervals on this axis.
\r
600 * @property majorUnit
\r
605 <div id="prop-Ext.chart.NumericAxis-minorUnit"></div>/**
\r
606 * The spacing between minor intervals on this axis.
\r
608 * @property minorUnit
\r
613 <div id="prop-Ext.chart.NumericAxis-snapToUnits"></div>/**
\r
614 * If true, the labels, ticks, gridlines, and other objects will snap to
\r
615 * the nearest major or minor unit. If false, their position will be based
\r
616 * on the minimum value.
\r
618 * @property snapToUnits
\r
623 <div id="prop-Ext.chart.NumericAxis-alwaysShowZero"></div>/**
\r
624 * If true, and the bounds are calculated automatically, either the minimum or
\r
625 * maximum will be set to zero.
\r
627 * @property alwaysShowZero
\r
630 alwaysShowZero: true,
\r
632 <div id="prop-Ext.chart.NumericAxis-scale"></div>/**
\r
633 * The scaling algorithm to use on this axis. May be "linear" or "logarithmic".
\r
641 <div id="cls-Ext.chart.TimeAxis"></div>/**
\r
642 * @class Ext.chart.TimeAxis
\r
643 * @extends Ext.chart.Axis
\r
644 * A type of axis whose units are measured in time-based values.
\r
647 Ext.chart.TimeAxis = Ext.extend(Ext.chart.Axis, {
\r
650 <div id="prop-Ext.chart.TimeAxis-minimum"></div>/**
\r
651 * The minimum value drawn by the axis. If not set explicitly, the axis minimum
\r
652 * will be calculated automatically.
\r
654 * @property minimum
\r
659 <div id="prop-Ext.chart.TimeAxis-maximum"></div>/**
\r
660 * The maximum value drawn by the axis. If not set explicitly, the axis maximum
\r
661 * will be calculated automatically.
\r
663 * @property maximum
\r
668 <div id="prop-Ext.chart.TimeAxis-majorUnit"></div>/**
\r
669 * The spacing between major intervals on this axis.
\r
671 * @property majorUnit
\r
676 <div id="prop-Ext.chart.TimeAxis-majorTimeUnit"></div>/**
\r
677 * The time unit used by the majorUnit.
\r
679 * @property majorTimeUnit
\r
682 majorTimeUnit: null,
\r
684 <div id="prop-Ext.chart.TimeAxis-majorUnit"></div>/**
\r
685 * The spacing between minor intervals on this axis.
\r
687 * @property majorUnit
\r
692 <div id="prop-Ext.chart.TimeAxis-majorTimeUnit"></div>/**
\r
693 * The time unit used by the minorUnit.
\r
695 * @property majorTimeUnit
\r
698 minorTimeUnit: null,
\r
700 <div id="prop-Ext.chart.TimeAxis-snapToUnits"></div>/**
\r
701 * If true, the labels, ticks, gridlines, and other objects will snap to
\r
702 * the nearest major or minor unit. If false, their position will be based
\r
703 * on the minimum value.
\r
705 * @property snapToUnits
\r
711 <div id="cls-Ext.chart.CategoryAxis"></div>/**
\r
712 * @class Ext.chart.CategoryAxis
\r
713 * @extends Ext.chart.Axis
\r
714 * A type of axis that displays items in categories.
\r
717 Ext.chart.CategoryAxis = Ext.extend(Ext.chart.Axis, {
\r
720 <div id="prop-Ext.chart.CategoryAxis-categoryNames"></div>/**
\r
721 * A list of category names to display along this axis.
\r
723 * @property categoryNames
\r
726 categoryNames: null
\r
729 <div id="cls-Ext.chart.Series"></div>/**
\r
730 * @class Ext.chart.Series
\r
731 * Series class for the charts widget.
\r
734 Ext.chart.Series = function(config) { Ext.apply(this, config); };
\r
736 Ext.chart.Series.prototype =
\r
738 <div id="prop-Ext.chart.Series-type"></div>/**
\r
739 * The type of series.
\r
746 <div id="prop-Ext.chart.Series-displayName"></div>/**
\r
747 * The human-readable name of the series.
\r
749 * @property displayName
\r
755 <div id="cls-Ext.chart.CartesianSeries"></div>/**
\r
756 * @class Ext.chart.CartesianSeries
\r
757 * @extends Ext.chart.Series
\r
758 * CartesianSeries class for the charts widget.
\r
761 Ext.chart.CartesianSeries = Ext.extend(Ext.chart.Series, {
\r
762 <div id="prop-Ext.chart.CartesianSeries-xField"></div>/**
\r
763 * The field used to access the x-axis value from the items from the data source.
\r
770 <div id="prop-Ext.chart.CartesianSeries-yField"></div>/**
\r
771 * The field used to access the y-axis value from the items from the data source.
\r
779 <div id="cls-Ext.chart.ColumnSeries"></div>/**
\r
780 * @class Ext.chart.ColumnSeries
\r
781 * @extends Ext.chart.CartesianSeries
\r
782 * ColumnSeries class for the charts widget.
\r
785 Ext.chart.ColumnSeries = Ext.extend(Ext.chart.CartesianSeries, {
\r
789 <div id="cls-Ext.chart.LineSeries"></div>/**
\r
790 * @class Ext.chart.LineSeries
\r
791 * @extends Ext.chart.CartesianSeries
\r
792 * LineSeries class for the charts widget.
\r
795 Ext.chart.LineSeries = Ext.extend(Ext.chart.CartesianSeries, {
\r
799 <div id="cls-Ext.chart.BarSeries"></div>/**
\r
800 * @class Ext.chart.BarSeries
\r
801 * @extends Ext.chart.CartesianSeries
\r
802 * BarSeries class for the charts widget.
\r
805 Ext.chart.BarSeries = Ext.extend(Ext.chart.CartesianSeries, {
\r
810 <div id="cls-Ext.chart.PieSeries"></div>/**
\r
811 * @class Ext.chart.PieSeries
\r
812 * @extends Ext.chart.Series
\r
813 * PieSeries class for the charts widget.
\r
816 Ext.chart.PieSeries = Ext.extend(Ext.chart.Series, {
\r
819 categoryField: null
\r