PDA

View Full Version : Subtitle in Charts



gameboy87
6 Mar 2012, 2:31 AM
Hi,

May I know how to create subtitle in Charts of ExtJS ? That is below x-Axis, want to render some Values like

Total Marks:45 Pass:56 Fail: 78



Waiting for the reply !

mitchellsimoens
6 Mar 2012, 10:37 AM
You can add a sprite to the chart.

gameboy87
7 Mar 2012, 9:37 PM
Thanks. Will try that !

gameboy87
8 Mar 2012, 6:08 AM
I tried with the below code. But I was not able to render the text sprite. Please help ! I am struck :(



var main_win = Ext.create('Ext.Window', {
width: '90%',
height: 450,
x:5,y:5,
...
...,
items: [{
xtype: 'chart',
...
...
},
{
xtype: 'draw',
viewBox: false,
width:'50%',height:250,
items:[{
type:'text',
text:'Hello',
fill:'#000',
font:'11px Arial',
x:50,y:200
}]
}
});

gameboy87
10 Mar 2012, 1:56 AM
Anyone ?

gameboy87
15 Mar 2012, 4:00 AM
Please assist me in developing it. Thanks.