Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,062
    Answers
    3976
    Vote Rating
    1391
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Aug 2012
    Posts
    3
    Vote Rating
    0
      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

Posting Permissions

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