Results 1 to 3 of 3

Thread: 2.1 Charts crash iPad 3, not iPad Mini -- can we disable retina?

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Unanswered: 2.1 Charts crash iPad 3, not iPad Mini -- can we disable retina?

    Seeing 100% repeatable crash with Charts 2.1 on an iPad 3 after adding two simple gauge charts to one tab and a simple line chart with 3 series to another tab.

    Interestingly, it does NOT crash an iPad mini fresh out of a box. Surprising as there is only 512MB in the mini and 1GB in the iPad 3. I suspect this is related to charts using retina, as the same charts do NOT crash the iPad 3 under charts 2.0.

    Thoughts? What I really want is to disable retina in charts. Possible?

    I have a demo next week so a bit worried about this.

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Forcing non-retina works for me

    Update:

    changing line 96 of src/draw/Surface.js from:

    Code:
    devicePixelRatio: window.devicePixelRatio,
    to

    Code:
    devicePixelRatio: 1,
    helps the crashing issue for me. Charts are, of course, less sharp, but it helps. Still crashes on rotation, if I use the legend to hide and show a series multiple times, or if I go back and forth between bottom tabs with charts on them. It feels as if each time I go back and forth, another copy of the chart is loaded....

    The really strange thing is, on the iPad mini, everything is silky smooth. Can't get it to crash. Seems faster too.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default Disabling tab panel animation also helps

    This seems to have helped greatly as well:

    Code:
     layout: {
                animation: false
            },
    Now I can switch tab panel buttons between charts endlessly on the iPad 3 without issue.

Posting Permissions

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