Results 1 to 3 of 3

Thread: Chart title

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2008
    Posts
    11
    Vote Rating
    0
      0  

    Default 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 User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    86
      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
      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
            } 
    ...]

Posting Permissions

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