ambrits
22 Jan 2011, 7:55 AM
Hi!
I have the following code.
Ext.setup({
onReady: function(options) {
var panel = new Ext.Panel
({
fullscreen: true,
html: '<div id="graphi"></div>'
});
var r = Raphael('graphi');
r.g.text(150, 250, "Bar chart");
r.g.barchart(10, 10, 300, 220, [[1, 2, 3, 4, 5, 6, 7],[5, 4, 2, 6, 7, 8]]);
}
});
It's working well. I need help. How can I put this code into the (for example) tab.js file, tab 1 panel of "kitchensink" demo app? (I try to catch the logic of it, but I can't. Sorry for the amateur question)
Thanks!
Tamás
I have the following code.
Ext.setup({
onReady: function(options) {
var panel = new Ext.Panel
({
fullscreen: true,
html: '<div id="graphi"></div>'
});
var r = Raphael('graphi');
r.g.text(150, 250, "Bar chart");
r.g.barchart(10, 10, 300, 220, [[1, 2, 3, 4, 5, 6, 7],[5, 4, 2, 6, 7, 8]]);
}
});
It's working well. I need help. How can I put this code into the (for example) tab.js file, tab 1 panel of "kitchensink" demo app? (I try to catch the logic of it, but I can't. Sorry for the amateur question)
Thanks!
Tamás