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

      0  

    Default needed multiple piechart with labels inside number of div depends on json data return

    needed multiple piechart with labels inside number of div depends on json data return


    Hi All,

    I am looking for a solution where i need to add a number of containers in different divs.
    Where each container will have some display values in label and a pie chart based on the some json integer value.

    Looking for some solution with example.
    I tried to generate below code format with XTemplate but with that i was not able to add pie chart component to it.

    Finally output should be something like

    <div id="scrollerDiv">
    <div id="1"> -container component having two display labels and pie chart corresponding to json first label and chart related value - </div>
    <div id="2"> -container component having two display labels and pie chart corresponding to json first label and chart related value - </div>
    ....

    </div>


    Any help you can provide would be greatly appreciated.

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


    So based on the response determines the number of containers you want to render?
    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
    Sep 2012
    Posts
    3
    Vote Rating
    0
    pogobaba is on a distinguished road

      0  

    Default


    Yes and each container will have data that will create a pie chart inside the container and some label with value.

    Quote Originally Posted by mitchellsimoens View Post
    So based on the response determines the number of containers you want to render?