1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Vote Rating
    1
    Answers
    1
    RuBenKlunZ is on a distinguished road

      0  

    Default Unanswered: Chart component without DOM element

    Unanswered: Chart component without DOM element


    Hi all,

    I have a Touch 2.0.1-application with the seperated Touch Charts module (2.0.0-beta).
    In my application I have a Carousel component which holds multiple Panels with a chart in it. The user can decide in what chart he wants to see the data (pie, line or bar).

    So I decided that when the user changes the chart type. I remove the old chart from the panel and add a new chart in it.

    The problem is that the new chart is not shown. I don't get an error and when I do a console.log on the panel, the chart component is created but there are no DOM elements created.
    The chartBBox property has all properties on 0 and in the elemt property there are no childNodes set.

    Can anybody help me out?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    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


    Try upgrading to 2.1.0 b2, the charts have been rewritten and are now included in the framework. The touch charts 2 beta is deprecated in favor of these new ones.
    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.