Results 1 to 3 of 3

Thread: Charts - multiple charts sharing one store

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    101
    Answers
    4
    Vote Rating
    13
      0  

    Default Answered: Charts - multiple charts sharing one store

    Hello,

    I was hoping to have a few charts share a store (the charts all use the same parameters and make the same ajax call) without each chart being updated with the store data from another chart. Is there a way to create multiple instances of the same store and have each chart use an instance of the store but be updated individually?

    Thanks for any suggestions.

  2. You will need to have different stores if you want them to be updated individually.

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,380
    Answers
    3997
    Vote Rating
    1524
      0  

    Default

    You will need to have different stores if you want them to be updated individually.
    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

  4. #3
    Sencha Premium Member
    Join Date
    Mar 2011
    Location
    Betelgeuse VII
    Posts
    101
    Answers
    4
    Vote Rating
    13
      0  

    Default

    Thanks, I've went ahead and created a new store binding it to my chart.

    Code:
    chartStore.loadRecords(records);
    myChart.bindStore(chartStore);

Posting Permissions

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