]>
git.proxmox.com Git - extjs.git/blob - extjs/packages/charts/src/chart/series/CandleStick.js
2 * @class Ext.chart.series.CandleStick
3 * @extends Ext.chart.series.Cartesian
5 * Creates a candlestick or OHLC Chart.
10 * renderTo: document.body,
15 * fields: ['time', 'open', 'high', 'low', 'close'],
17 * 'time': new Date('Jan 1 2010').getTime(),
23 * 'time': new Date('Jan 2 2010').getTime(),
29 * 'time': new Date('Jan 3 2010').getTime(),
35 * 'time': new Date('Jan 4 2010').getTime(),
41 * 'time': new Date('Jan 5 2010').getTime(),
51 * fields: ['open', 'high', 'low', 'close'],
53 * text: 'Sample Values',
63 * fromDate: new Date('Dec 31 2009'),
64 * toDate: new Date('Jan 6 2010'),
66 * text: 'Sample Values',
74 * type: 'candlestick',
79 * closeField: 'close',
82 * fill: 'rgb(222, 87, 87)',
83 * stroke: 'rgb(222, 87, 87)',
87 * fill: 'rgb(48, 189, 167)',
88 * stroke: 'rgb(48, 189, 167)',
95 Ext
.define('Ext.chart.series.CandleStick', {
96 extend
: 'Ext.chart.series.Cartesian',
97 requires
: ['Ext.chart.series.sprite.CandleStick'],
98 alias
: 'series.candlestick',
100 seriesType
: 'candlestickSeries',
103 * @cfg {String} openField
104 * The store record field name that represents the opening value of the given period.
108 * @cfg {String} highField
109 * The store record field name that represents the highest value of the time interval represented.
113 * @cfg {String} lowField
114 * The store record field name that represents the lowest value of the time interval represented.
118 * @cfg {String} closeField
119 * The store record field name that represents the closing value of the given period.
124 fieldCategoryY
: ['Open', 'High', 'Low', 'Close'],
126 themeColorCount: function() {