Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    0
    zha is on a distinguished road

      0  

    Default Unanswered: How to add an onComplete callback after the chart has been generated

    Unanswered: How to add an onComplete callback after the chart has been generated


    I am using Sencha Touch Charts 1.x to create charts. Once the chart is generated and displayed, I would like to do some additional Javascipt code to be executed. Is this possible ?

    Right now, I can find onReady function in Ext.setup, but, no other callbacks.

    Thanks in advance.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,207
    Answers
    3517
    Vote Rating
    856
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Do you mean when it is rendered or when the data is displayed which if you are loading remote data can happen at two different times?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    0
    zha is on a distinguished road

      0  

    Default


    I mean, once the chart is rendered fully.

    More context:
    I am displaying the chart in iPhone app. I am displaying the loading spinner before the chart is loaded. The loading spinner need to be removed only after full rendering of the chart.

    Currently, I am removing the spinner on javascript onload. But, the chart takes 2 to 3 seconds after this to fully display. I would like to avoid this delay and remove the spinner only after completion of the chart rendering.

    Thanks

Thread Participants: 1