Results 1 to 2 of 2

Thread: how to show a columnchart in the Ext.Tooltip?

  1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    10

    Question how to show a columnchart in the Ext.Tooltip?

    I want to show a columnchart in a tooltip as a Item, when the tooptip show,I can't see the chart,then I Put a columnchart in a Ext.Window ,it works well ,anyone who can tell how to show the chart in a tooltip? is tooltip supports flash? thank you very much!
    Code:
    new Ext.ToolTip({
                            target : Ext.getBody(), // The overall target element.
                            delegate : delegate, // Each grid row causes its own
                            anchor : 'bottom',
                            defaultAlign : 'l',
                            anchorToTarget : true,
                            title : '????',
                            colseable : true,
                            anchorOffset : -8,
                            // width:200,
                            // height:300,
                            // seperate show and hide.
                            // trackMouse : true, // Moving within the row should
                            // not
                            // hide the
                            renderTo : id, // Render immediately so that
                            autoHide : false,
                            closable : true,
                            // tip.body can be
                            // contentEl : contentEl,
                            items : [{
                                        xtype : 'panel',
                                        width : 200,
                                        title:'fdaf',
                                        height : 230,
                                        items:[{
                                        xtype : 'columnchart',
                                        store : chartStore,
                                        xtype : 'columnchart',
                                        yField : 'hits',
                                        autoShow : true,
                                        url : 'js/resources/charts.swf',
                                        xField : 'month',
                                        xAxis : new Ext.chart.CategoryAxis({
                                                    title : 'Month'
                                                }),
                                        yAxis : new Ext.chart.NumericAxis({
                                                    title : 'Hits'
                                                }),
                                        extraStyle : {
                                            xAxis : {
                                                labelRotation : -90
                                            }
                                        }}]
    
                                    }],
                            listeners : { // Change content dynamically depending
                                show : beforeshow,
                                render : function() {
    
                                    // chart.show();
                                }
                            }
                        });

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    Why add an extra Panel?

    A ToolTip IS a Panel, as you know!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •