Results 1 to 2 of 2

Thread: Manually setting Chart axis title.

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Location
    San Mateo, CA
    Posts
    46
    Answers
    7

    Default Answered: Manually setting Chart axis title.

    I'm running 4.0 and trying to update a charts axis title programmaticly. If i set the .title attribute of an X or Y axis in initComponent, the property change does not stick.

    F.Y.I: I'm creating an abstraction of the chart xtype and creating two custom properties: 'titlex' and 'titley'.

    Code:
            initComponent: function() {
                var me = this;
                me.callParent(arguments);
                var chart = me.items.items[0].items.items[0].items.items[0];
                chart.axes.items[0].title = me.titlex;
                chart.axes.items[1].title = me.titley;
            }
    Please help!

  2. Figured it out.

    If you set the title in beforeComponentLayout() it will work fine.

  3. #2
    Sencha User
    Join Date
    Jan 2012
    Location
    San Mateo, CA
    Posts
    46
    Answers
    7

    Default

    Figured it out.

    If you set the title in beforeComponentLayout() it will work fine.

Posting Permissions

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