]>
git.proxmox.com Git - extjs.git/blob - extjs/build/examples/kitchensink/classic/samples/view/charts/bar/BasicController.js
1 Ext
.define('KitchenSink.view.charts.bar.BasicController', {
2 extend
: 'Ext.app.ViewController',
3 alias
: 'controller.bar-basic',
5 onAxisLabelRender: function(axis
, label
, layoutContext
) {
6 return Ext
.util
.Format
.number(layoutContext
.renderer(label
) / 1000, '0,000');
9 onSeriesLabelRender: function(v
) {
10 return Ext
.util
.Format
.number(v
/ 1000, '0,000');
13 onItemEditTooltipRender: function(tooltip
, item
, target
, e
) {
14 var formatString
= '0,000 (billions of USD)',
17 tooltip
.setHtml(record
.get('country') + ': ' +
18 Ext
.util
.Format
.number(target
.yValue
/ 1000, formatString
));
21 onSeriesTooltipRender: function(tooltip
, record
, item
) {
22 var formatString
= '0,000 (millions of USD)';
24 tooltip
.setHtml(record
.get('country') + ': ' +
25 Ext
.util
.Format
.number(record
.get('ind'), formatString
));
28 onColumnRender: function(v
) {
29 return Ext
.util
.Format
.usMoney(v
* 1000);
32 onPreview: function() {
36 Ext
.Msg
.alert('Unsupported Operation', 'This operation requires a newer version of Internet Explorer.');
41 chart
= this.lookup('chart');