Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2008
    Posts
    11
    Vote Rating
    0
    thospfuller is on a distinguished road

      0  

    Default Chart title

    Chart title


    Hi,

    Is it possible to add a title to a chart?

    I've looked through the examples and the titles there appear in the container that contains the graph. This is OK, however I would like it to appear in the chart itself.

    If this is possible, could I see an example, because I've tried a few things and have had no luck so far.

    Thanks for your help,

    Tom

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    I've customized the hell out of charts but have not seen a way to do this. The closest i could come was adding X and Y axis labels. :-\

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Location
    Missouri
    Posts
    10
    Vote Rating
    2
    Gibolt is on a distinguished road

      1  

    Default


    I have been trying to figure this out for months. Finally came up with this workaround. The only downside is the added black axis line. If anyone can come up with a fix for that, let me know

    Code:
    function emptyText(val) {return '';}
    
    axes    : [{
                type    : 'Category',
                position: 'top',
                label   : {renderer: emptyText},
                title   : 'Title!!!!!!!!',
                dashSize: 0
            } 
    ...]

Thread Participants: 2